diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-05-20 23:23:52 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-05-20 23:24:20 +0200 |
commit | d109c8be8fe97631fa29affed0de6c4d50f56a95 (patch) | |
tree | d5cf54ac61749836063d596ad9923fde2fa68a24 /src/Text | |
parent | 753d5811e2d08ac27dd77659e43a6968b7ebd72a (diff) | |
download | pandoc-d109c8be8fe97631fa29affed0de6c4d50f56a95.tar.gz |
PDF: better error message for non-converted svg images.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/PDF.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs index 822067e78..090bcbc6d 100644 --- a/src/Text/Pandoc/PDF.hs +++ b/src/Text/Pandoc/PDF.hs @@ -159,6 +159,7 @@ convertImage tmpdir fname = Just "image/png" -> doNothing Just "image/jpeg" -> doNothing Just "application/pdf" -> doNothing + Just "image/svg+xml" -> return $ Left "conversion from svg not supported" _ -> JP.readImage fname >>= \res -> case res of Left e -> return $ Left e |