mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Added comment for replace_apostrophes function in write_xml
This commit is contained in:
parent
b3b33c902a
commit
989ff6d367
1 changed files with 1 additions and 1 deletions
|
@ -293,9 +293,9 @@ def indent(elem, level=0):
|
||||||
def write_xml(content, file):
|
def write_xml(content, file):
|
||||||
with open(file, 'w') as infile:
|
with open(file, 'w') as infile:
|
||||||
|
|
||||||
|
# replace apostrophes with double quotes only in xml keys, not texts
|
||||||
def replace_apostrophes(match):
|
def replace_apostrophes(match):
|
||||||
return match.group(0).replace("'", '"')
|
return match.group(0).replace("'", '"')
|
||||||
|
|
||||||
content = re.sub("<(.*?)>", replace_apostrophes, content)
|
content = re.sub("<(.*?)>", replace_apostrophes, content)
|
||||||
|
|
||||||
content = content.replace('?>', ' standalone="yes" ?>', 1)
|
content = content.replace('?>', ' standalone="yes" ?>', 1)
|
||||||
|
|
Loading…
Reference in a new issue