From 44d64e356cddcf49754da11562311e7048d11336 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Fri, 12 Feb 2021 21:46:48 -0800 Subject: [PATCH] Indent json on disk --- redstring/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redstring/parser.py b/redstring/parser.py index 8025c70..87c9ae6 100644 --- a/redstring/parser.py +++ b/redstring/parser.py @@ -328,7 +328,7 @@ def dump(doc: Document, fd: IO): Write a document to a file descriptor. """ dumped_json = doc.to_json() - json.dump(dumped_json, fd) + json.dump(dumped_json, fd, indent=2) #