Commit 90d2f167 authored by Michael Thies's avatar Michael Thies
Browse files

Merge branch 'feature/compliance_tool_pretty_printing_example_files' into 'master'

compliance_tool: add pretty printing for example files

Closes #92

See merge request !55
parents cb3b8903 f5bec073
Pipeline #339797 passed with stages
in 52 seconds
......@@ -96,13 +96,13 @@ def main():
with open(args.file_1, 'w', encoding='utf-8-sig') as file:
manager.set_step_status(Status.SUCCESS)
manager.add_step('Write data to file')
write_aas_json_file(file=file, data=data)
write_aas_json_file(file=file, data=data, indent=4)
manager.set_step_status(Status.SUCCESS)
elif args.xml:
with open(args.file_1, 'wb') as file:
manager.set_step_status(Status.SUCCESS)
manager.add_step('Write data to file')
write_aas_xml_file(file=file, data=data)
write_aas_xml_file(file=file, data=data, pretty_print=True)
manager.set_step_status(Status.SUCCESS)
except IOError as error:
logger.error(error)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment