Indent json on disk

This commit is contained in:
Tim Van Baak 2021-02-12 21:46:48 -08:00
parent fc74673bb2
commit 44d64e356c
1 changed files with 1 additions and 1 deletions

View File

@ -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)
#