Add indent to the dump for better diff

This commit is contained in:
Satwik 2019-12-23 15:58:25 +05:30
parent ad39ef8625
commit b3387c9dc7
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ def convert_to_notebook(pre_examples_content, parsed_json, post_examples_content
#pprint.pprint(result, indent=2)
with open(notebook_path, "w") as f:
json.dump(result, f)
json.dump(result, f, indent=2)
with open(fpath, 'r+', encoding="utf-8") as f: