From: Scott Worley Date: Wed, 20 Dec 2023 23:57:46 +0000 (-0800) Subject: LaTeX doesn't like % in filenames X-Git-Url: http://git.scottworley.com/paperdoorknob/commitdiff_plain/d59b46dbd038d61afd875c04e6dcc39e9395f414?ds=inline;hp=d2a41ff4f433a29173259359dcf477fd59ee3c78 LaTeX doesn't like % in filenames --- diff --git a/images.py b/images.py index d9926a3..68a9696 100644 --- a/images.py +++ b/images.py @@ -32,7 +32,7 @@ class DiskImageStore(ImageStore): def _filename(self, url: str) -> str: assert url not in self._images - base = os.path.basename(url) + base = os.path.basename(url).replace('%', '') if base not in self._filenames: return base stem, ext = os.path.splitext(base)