未验证 提交 f044d072 编写于 作者: S SuslikV 提交者: GitHub

Fix formatting of repaired JSON data (#3262)

Save repaired data with indents / pretty-printing
上级 d28befdd
......@@ -165,7 +165,7 @@ class JsonDataStore:
else:
# We have to de- and re-serialize the data, to complete repairs
temp_data = json.loads(contents)
contents = json.dumps(temp_data, ensure_ascii=False)
contents = json.dumps(temp_data, ensure_ascii=False, indent=1)
temp_data = {}
# Save the repaired data back to the original file
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册