mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Merge remote-tracking branch 'mit-crpg/openmc/develop' into fixd-src-leak
This commit is contained in:
commit
b98837e58b
1 changed files with 4 additions and 4 deletions
|
|
@ -82,11 +82,11 @@ def clean_xml_indentation(element, level=0):
|
|||
if not element.tail or not element.tail.strip():
|
||||
element.tail = i
|
||||
|
||||
for element in element:
|
||||
clean_xml_indentation(element, level+1)
|
||||
for sub_element in element:
|
||||
clean_xml_indentation(sub_element, level+1)
|
||||
|
||||
if not element.tail or not element.tail.strip():
|
||||
element.tail = i
|
||||
if not sub_element.tail or not sub_element.tail.strip():
|
||||
sub_element.tail = i
|
||||
|
||||
else:
|
||||
if level and (not element.tail or not element.tail.strip()):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue