lightning-cli: do pretty-printing.

Plugins don't do it right anyway, and we're about to remove it from
lightningd.  Produces same format as json_pp.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-04-08 19:28:44 +09:30
committed by neil saitug
parent 465065691f
commit 5009d628a3
5 changed files with 88 additions and 8 deletions

View File

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