From d59b46dbd038d61afd875c04e6dcc39e9395f414 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 20 Dec 2023 15:57:46 -0800 Subject: [PATCH] LaTeX doesn't like % in filenames --- images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.44.1