[Fix] resedit: save works as it should now.
This commit is contained in:
parent
c6161c8acd
commit
cbffbfc2a0
@ -60,7 +60,7 @@ def save(xmlfile, data, basetag, tag, has_name=True, do_array=None):
|
||||
txtnode = xml.createTextNode(text)
|
||||
node2.appendChild(txtnode)
|
||||
node.appendChild(node2)
|
||||
|
||||
|
||||
# Standard dictionary approach.
|
||||
else:
|
||||
for key3, value3 in value2.items():
|
||||
@ -74,7 +74,7 @@ def save(xmlfile, data, basetag, tag, has_name=True, do_array=None):
|
||||
xml.appendChild(base)
|
||||
|
||||
fp = open(xmlfile, "w")
|
||||
xml.writexml(fp, "", "", "\n" "UTF-8")
|
||||
|
||||
xml.writexml(fp, "", "", "\n", "UTF-8")
|
||||
|
||||
xml.unlink()
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user