Fix indent of xmls

This commit is contained in:
croneter 2018-02-12 21:27:22 +01:00
parent 754432f5bc
commit 3fabb21dac

View file

@ -590,8 +590,8 @@ def indent(elem, level=0):
elem.text = i + " " elem.text = i + " "
if not elem.tail or not elem.tail.strip(): if not elem.tail or not elem.tail.strip():
elem.tail = i elem.tail = i
for item in elem: for elem in elem:
indent(item, level+1) indent(elem, level+1)
if not elem.tail or not elem.tail.strip(): if not elem.tail or not elem.tail.strip():
elem.tail = i elem.tail = i
else: else: