Skip to content

Commit dad7dd6

Browse files
amarshallitchyny
authored andcommitted
Fix --indent 0 implicitly enabling compact-output
Now it will retain pretty-printing, just remove any indentation.
1 parent 588ff18 commit dad7dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ enum jv_print_flags {
226226
JV_PRINT_SPACE2 = 1024,
227227
};
228228
#define JV_PRINT_INDENT_FLAGS(n) \
229-
((n) < 0 || (n) > 7 ? JV_PRINT_TAB | JV_PRINT_PRETTY : (n) == 0 ? 0 : (n) << 8 | JV_PRINT_PRETTY)
229+
((n) < 0 || (n) > 7 ? JV_PRINT_TAB | JV_PRINT_PRETTY : (n) << 8 | JV_PRINT_PRETTY)
230230
void jv_dumpf(jv, FILE *f, int flags);
231231
void jv_dump(jv, int flags);
232232
void jv_show(jv, int flags);

0 commit comments

Comments
 (0)