diff options
Diffstat (limited to 'src/Text/Pandoc/PDF.hs')
-rw-r--r-- | src/Text/Pandoc/PDF.hs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs index bd36f0d33..5ef2bd80c 100644 --- a/src/Text/Pandoc/PDF.hs +++ b/src/Text/Pandoc/PDF.hs @@ -440,10 +440,7 @@ html2pdf verbosity program args source = do -- We read PDF as a strict bytestring to make sure that the -- temp directory is removed on Windows. -- See https://github.com/jgm/pandoc/issues/1192. - then do - res <- Just . BL.fromChunks . (:[]) <$> - BS.readFile pdfFile - return res + then Just . BL.fromChunks . (:[]) <$> BS.readFile pdfFile else return Nothing return $ case (exit, mbPdf) of (ExitFailure _, _) -> Left out |