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 25, 2024
1 parent c95f6ce commit c2a24f2
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 @@ -223,7 +223,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 c2a24f2

Please sign in to comment.