mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
cli: restore 0.7.0-style whitespace printing.
@renepickhardt has a shell script we broke. While we still produce perfectly valid JSON, we should not gratuitously change tool output. Plus, I prefer the missing space before the ':'. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
ZmnSCPxj, ZmnSCPxj jxPCSmnZ
parent
2f30cdc731
commit
118150227e
@@ -337,7 +337,7 @@ static void print_json(const char *str, const jsmntok_t *tok, const char *indent
|
||||
else
|
||||
printf(",\n%s", next_indent);
|
||||
print_json(str, t, next_indent);
|
||||
printf(" : ");
|
||||
printf(": ");
|
||||
print_json(str, t + 1, next_indent);
|
||||
first = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user