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 + " "
if not elem.tail or not elem.tail.strip():
elem.tail = i
for item in elem:
indent(item, level+1)
for elem in elem:
indent(elem, level+1)
if not elem.tail or not elem.tail.strip():
elem.tail = i
else: