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

@@ -330,7 +330,7 @@ def test_utf8_passthrough(node_factory, executor):
.format(l1.daemon.lightning_dir),
'utf8', 'ナンセンス 1杯']).decode('utf-8')
assert '\\u' not in out
assert out == '{\n "utf8" : "ナンセンス 1杯"\n}\n'
assert out == '{\n "utf8": "ナンセンス 1杯"\n}\n'
def test_invoice_payment_hook(node_factory):