From db0974660929c15ac57be8220ea83f437dd1e345 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 6 May 2024 14:43:07 +0200 Subject: [PATCH] indent with 3 spaces --- converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)