fix: add newline to JSON exports
Add empty line in the end of auto generate/update doctype files, in order to follow the python code style
This commit is contained in:
parent
1c3ec9bf81
commit
381ee5682c
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ def write_document_file(doc, record_module=None, create_init=True, folder_name=N
|
|||
if is_custom_module and not Path(path).resolve().is_relative_to(Path(frappe.get_site_path()).resolve()):
|
||||
frappe.throw("Invalid export path: " + Path(path).as_posix())
|
||||
with open(path, "w+") as txtfile:
|
||||
txtfile.write(frappe.as_json(doc_export))
|
||||
txtfile.write(frappe.as_json(doc_export) + "\n")
|
||||
print(f"Wrote document file for {doc.doctype} {doc.name} at {path}")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue