Indent json on disk
This commit is contained in:
parent
fc74673bb2
commit
44d64e356c
|
@ -328,7 +328,7 @@ def dump(doc: Document, fd: IO):
|
||||||
Write a document to a file descriptor.
|
Write a document to a file descriptor.
|
||||||
"""
|
"""
|
||||||
dumped_json = doc.to_json()
|
dumped_json = doc.to_json()
|
||||||
json.dump(dumped_json, fd)
|
json.dump(dumped_json, fd, indent=2)
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue