mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 20:58:11 +00:00
chore: debug_heron.py: Save exported json with pretty format
Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com>
This commit is contained in:
@@ -85,7 +85,7 @@ def main():
|
|||||||
print(f"Out dir: {out_dir}")
|
print(f"Out dir: {out_dir}")
|
||||||
with open(save_fn, "w") as fd:
|
with open(save_fn, "w") as fd:
|
||||||
dd = doc.export_to_dict()
|
dd = doc.export_to_dict()
|
||||||
json.dump(dd, fd)
|
json.dump(dd, fd, indent=2, sort_keys=True)
|
||||||
|
|
||||||
# Move the debug dir
|
# Move the debug dir
|
||||||
debug_dir = Path("debug/")
|
debug_dir = Path("debug/")
|
||||||
|
|||||||
Reference in New Issue
Block a user