Skip to content

Commit

Permalink
Merge pull request #45 from bpoxy/handle-ampersand-in-filenames
Browse files Browse the repository at this point in the history
Replace `&` with `&` in XML as `dee` doesn't seem to properly interpret `&`.
  • Loading branch information
pcroland authored Dec 28, 2023
2 parents fc0de28 + e7f3bf7 commit 24218e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deew/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def rwpc(p: str) -> str:

def save_xml(f: str, xml: dict[str, Any]) -> None:
with open(f, 'w', encoding='utf-8') as fd:
fd.write(xmltodict.unparse(xml, pretty=True, indent=' '))
fd.write(xmltodict.unparse(xml, pretty=True, indent=' ').replace('&', '&'))


def basename(fl: str, format_: str, quote: bool=False, sanitize: bool=False, stripdelay: bool=False) -> str:
Expand Down

0 comments on commit 24218e5

Please sign in to comment.