From bedc1ff9bee5e99963486bf687077ca3663a8124 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Tue, 26 Jan 2021 18:16:17 -0500 Subject: [PATCH] Fix `--indent 0` implicitly enabling compact-output Now it will retain pretty-printing, just remove any indentation. --- src/jv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jv.h b/src/jv.h index 8c96f822f0..f927bbaea7 100644 --- a/src/jv.h +++ b/src/jv.h @@ -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);