Skip to content

Commit

Permalink
Fix --indent 0 implicitly enabling compact-output
Browse files Browse the repository at this point in the history
Now it will retain pretty-printing, just remove any indentation.
  • Loading branch information
amarshall committed Jan 26, 2021
1 parent 80052e5 commit bedc1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jv.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ enum jv_print_flags {
JV_PRINT_SPACE2 = 1024,
};
#define JV_PRINT_INDENT_FLAGS(n) \
((n) < 0 || (n) > 7 ? JV_PRINT_TAB | JV_PRINT_PRETTY : (n) == 0 ? 0 : (n) << 8 | JV_PRINT_PRETTY)
((n) < 0 || (n) > 7 ? JV_PRINT_TAB | JV_PRINT_PRETTY : (n) == 0 ? JV_PRINT_PRETTY : (n) << 8 | JV_PRINT_PRETTY)
void jv_dumpf(jv, FILE *f, int flags);
void jv_dump(jv, int flags);
void jv_show(jv, int flags);
Expand Down

0 comments on commit bedc1ff

Please sign in to comment.