git.iko.soy/typeable/pandoc
on master help sign in
Changed markdown2pdf to halt-on-error.
1951c23John MacFarlane
src/markdown2pdf.hs+1−1
@@ -48,7 +48,7 @@ runPandoc inputsAndArgs output = do
48runLatexRaw :: String -> FilePath -> IO (Either (Either String String) FilePath)
48runLatexRaw :: String -> FilePath -> IO (Either (Either String String) FilePath)
49runLatexRaw latexProgram file = do
49runLatexRaw latexProgram file = do
50 -- we ignore the ExitCode because pdflatex always fails the first time
50 -- we ignore the ExitCode because pdflatex always fails the first time
51− run latexProgram ["-interaction=batchmode", "-output-directory",
51+ run latexProgram ["-halt-on-error", "-output-directory",
52 takeDirectory file, dropExtension file] >> return ()
52 takeDirectory file, dropExtension file] >> return ()
53 let pdfFile = replaceExtension file "pdf"
53 let pdfFile = replaceExtension file "pdf"
54 let logFile = replaceExtension file "log"
54 let logFile = replaceExtension file "log"