summaryrefslogtreecommitdiffstats
path: root/tests/009/pass1.json
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-05-28 07:26:36 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-05-28 07:26:36 -0700
commit6904e21fc2f939df8cb06be0ce3407d79491b0a6 (patch)
treef8466df3e7dd2977c16230753b698ceddf69f542 /tests/009/pass1.json
parentd13518bba592ebfa2cb471aaa47ae50d11606ff9 (diff)
downloadtxr-6904e21fc2f939df8cb06be0ce3407d79491b0a6.tar.gz
txr-6904e21fc2f939df8cb06be0ce3407d79491b0a6.tar.bz2
txr-6904e21fc2f939df8cb06be0ce3407d79491b0a6.zip
json: indentation support for printing.
* lib.c (out_json_rec): Save, establish and restore indentation when printing [ ] and { } notation. Enforce line breaks, and force a line break after the object if one occurred in the object. (out_json): Turn on indentation if it is off (but not if it is forced off). Restore after doing the object.
Diffstat (limited to 'tests/009/pass1.json')
0 files changed, 0 insertions, 0 deletions