indent with 3 spaces
This commit is contained in:
parent
1215d802bd
commit
db09746609
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
# Output XML
|
# Output XML
|
||||||
dom = xml_parser(xml_string)
|
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:
|
if args.output:
|
||||||
with open(args.output, "w") as output_file:
|
with open(args.output, "w") as output_file:
|
||||||
output_file.write(pretty_xml)
|
output_file.write(pretty_xml)
|
||||||
|
|
Reference in a new issue