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:
Rusty Russell
2019-08-08 12:06:42 +09:30
committed by ZmnSCPxj, ZmnSCPxj jxPCSmnZ
parent 2f30cdc731
commit 118150227e
3 changed files with 16 additions and 2 deletions

View File

@@ -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;
}