Commit 0e10e094 authored by Martin Schorb's avatar Martin Schorb
Browse files

write_navfile: enable xml write

parent 2105a120
......@@ -289,10 +289,9 @@ def write_navfile(filename,outitems,xml=False):
if not key == '# Item':
cp = ET.SubElement(ci,key)
cp.text = ' '.join(val)
tree = ET.ElementTree(root)
outstr0 = ET.tostring(tree)
tree.write(filename)
indent_xml(root)
tree = ET.ElementTree(root)
tree.write(filename,encoding="utf-8",xml_declaration=True)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment