mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-03-21 17:54:59 -05:00
cleanup
This commit is contained in:
parent
c0d726a9e2
commit
bb0e3b89ea
|
|
@ -258,7 +258,7 @@ def close_xml_file(card_xml_file: IO[Any]) -> None:
|
||||||
parser = etree.XMLParser(remove_blank_text=True)
|
parser = etree.XMLParser(remove_blank_text=True)
|
||||||
root = etree.parse(card_xml_file.name, parser).getroot()
|
root = etree.parse(card_xml_file.name, parser).getroot()
|
||||||
with pathlib.Path(card_xml_file.name).open("wb") as f:
|
with pathlib.Path(card_xml_file.name).open("wb") as f:
|
||||||
f.write(etree.tostring(root, encoding = "UTF-8", xml_declaration = True, pretty_print=True))
|
f.write(etree.tostring(root, encoding="UTF-8", xml_declaration=True, pretty_print=True))
|
||||||
|
|
||||||
|
|
||||||
def xml_escape(text):
|
def xml_escape(text):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user