PDF.hs (pandoc-2.11.1.1) | : | PDF.hs (pandoc-2.11.2) | ||
---|---|---|---|---|
skipping to change at line 63 | skipping to change at line 63 | |||
import Data.List (intercalate) | import Data.List (intercalate) | |||
#endif | #endif | |||
import Data.List (isPrefixOf, find) | import Data.List (isPrefixOf, find) | |||
import Text.Pandoc.Class.PandocIO (PandocIO, extractMedia, runIOorExplode) | import Text.Pandoc.Class.PandocIO (PandocIO, extractMedia, runIOorExplode) | |||
import Text.Pandoc.Class.PandocMonad (fillMediaBag, getCommonState, getVerbosity , | import Text.Pandoc.Class.PandocMonad (fillMediaBag, getCommonState, getVerbosity , | |||
putCommonState, report, setVerbosity) | putCommonState, report, setVerbosity) | |||
import Text.Pandoc.Logging | import Text.Pandoc.Logging | |||
#ifdef _WINDOWS | #ifdef _WINDOWS | |||
changePathSeparators :: FilePath -> FilePath | changePathSeparators :: FilePath -> FilePath | |||
changePathSeparators = intercalate "/" . splitDirectories | changePathSeparators = | |||
-- We filter out backslashes because an initial `C:\` gets | ||||
-- retained by `splitDirectories`, see #6173: | ||||
intercalate "/" . map (filter (/='\\')) . splitDirectories | ||||
#endif | #endif | |||
makePDF :: String -- ^ pdf creator (pdflatex, lualatex, xelatex, | makePDF :: String -- ^ pdf creator (pdflatex, lualatex, xelatex, | |||
-- wkhtmltopdf, weasyprint, prince, context, pdfr off, | -- wkhtmltopdf, weasyprint, prince, context, pdfr off, | |||
-- or path to executable) | -- or path to executable) | |||
-> [String] -- ^ arguments to pass to pdf creator | -> [String] -- ^ arguments to pass to pdf creator | |||
-> (WriterOptions -> Pandoc -> PandocIO Text) -- ^ writer | -> (WriterOptions -> Pandoc -> PandocIO Text) -- ^ writer | |||
-> WriterOptions -- ^ options | -> WriterOptions -- ^ options | |||
-> Pandoc -- ^ document | -> Pandoc -- ^ document | |||
-> PandocIO (Either ByteString ByteString) | -> PandocIO (Either ByteString ByteString) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 4 lines changed or added |