mirror of
https://github.com/ultrajson/ultrajson.git
synced 2024-05-28 18:16:02 +02:00
Indent dict values
This commit is contained in:
parent
af5ca77263
commit
11b0d2db25
|
@ -764,7 +764,12 @@ void encode(JSOBJ obj, JSONObjectEncoder *enc, const char *name, size_t cbName)
|
|||
Buffer_AppendCharUnchecked(enc, '\"');
|
||||
|
||||
Buffer_AppendCharUnchecked (enc, ':');
|
||||
#ifndef JSON_NO_EXTRA_WHITESPACE
|
||||
#ifdef JSON_NO_EXTRA_WHITESPACE
|
||||
if (enc->indent)
|
||||
{
|
||||
Buffer_AppendCharUnchecked (enc, ' ');
|
||||
}
|
||||
#else
|
||||
Buffer_AppendCharUnchecked (enc, ' ');
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue