diff --git a/converter.py b/converter.py index 79b6850..3608e2c 100644 --- a/converter.py +++ b/converter.py @@ -133,7 +133,7 @@ if __name__ == "__main__": # Output XML dom = xml_parser(xml_string) - pretty_xml = dom.toprettyxml(encoding="UTF-8").decode() + pretty_xml = dom.toprettyxml(indent=" ", encoding="UTF-8").decode() if args.output: with open(args.output, "w") as output_file: output_file.write(pretty_xml)