Fix indent of xmls
This commit is contained in:
parent
754432f5bc
commit
3fabb21dac
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue