From 18270c7a390b5cb101e16790ccb5e50dd9f34a7a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 16 Jul 2021 11:39:02 -0700 Subject: 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. --- src/Text/Pandoc/PDF.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3