escape quotes

This commit is contained in:
tooomm
2020-12-01 20:40:48 +01:00
committed by GitHub
parent 5c6b698677
commit 54e1829c3a

View File

@@ -203,8 +203,8 @@ def open_header(card_xml_file: IO[Any]) -> None:
:param card_xml_file: Card file path
"""
card_xml_file.write(
"<?xml version="1.0" encoding="UTF-8"?>\n"
+ "<cockatrice_carddatabase version='4' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://raw.githubusercontent.com/Cockatrice/Cockatrice/master/doc/carddatabase_v3/cards.xsd">\n"
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<cockatrice_carddatabase version=\"4\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"https://raw.githubusercontent.com/Cockatrice/Cockatrice/master/doc/carddatabase_v3/cards.xsd\">\n"
+ " <!--\n"
+ " THIS FILE IS AUTOMATICALLY GENERATED & ALL EDITS WILL BE OVERRIDDEN.\n"
+ " -->\n"