aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-07-16 11:39:02 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-07-16 11:39:02 -0700
commit18270c7a390b5cb101e16790ccb5e50dd9f34a7a (patch)
tree91d88396cde49be16521e138c2d6f82d4b0ae3fd
parent06408d08e5ccf06a6a04c9b77470e6a67d98e52c (diff)
downloadpandoc-18270c7a390b5cb101e16790ccb5e50dd9f34a7a.tar.gz
PDF: Fix svgIn path error.
We were duplicating the temp directory; this didn't show up on macOS or linux because there we use absolute paths for the temp directory. Closes #7431.
-rw-r--r--src/Text/Pandoc/PDF.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs
index aae3f9806..c4e30af34 100644
--- a/src/Text/Pandoc/PDF.hs
+++ b/src/Text/Pandoc/PDF.hs
@@ -217,7 +217,7 @@ convertImage opts tmpdir fname = do
where
pngOut = normalise $ replaceDirectory (replaceExtension fname ".png") tmpdir
pdfOut = normalise $ replaceDirectory (replaceExtension fname ".pdf") tmpdir
- svgIn = normalise $ tmpdir </> fname
+ svgIn = normalise fname
mime = getMimeType fname
doNothing = return (Right fname)