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 + " "
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue