Clear formatting immediately after colon

This commit is contained in:
Thalia Archibald authored and Nico Williams committed 2024-02-08 00:11:54 -06:00
1 parent 76853f6046
commit 48df9bce0c
2 files changed
+8 -5

No files matched your search

+4 -1
View File
@@ -334,8 +334,11 @@ static void jv_dump_term(struct dtoa_context* C, jv x, int flags, int indent, FI
if (color) put_str(COLRESET, F, S, flags & JV_PRINT_ISATTY);
if (color) put_str(color, F, S, flags & JV_PRINT_ISATTY);
put_str((flags & JV_PRINT_PRETTY) ? ": " : ":", F, S, flags & JV_PRINT_ISATTY);
put_char(':', F, S, flags & JV_PRINT_ISATTY);
if (color) put_str(COLRESET, F, S, flags & JV_PRINT_ISATTY);
if (flags & JV_PRINT_PRETTY) {
put_char(' ', F, S, flags & JV_PRINT_ISATTY);
}
jv_dump_term(C, value, flags, indent + 1, F, S);
}