git.iko.soy/typeable/pandoc
on master help sign in
Changed markdown2pdf to halt-on-error.

Before, we used -interaction=batchmode, which just ignored errors. This leads to bad results--users should know when something goes wrong.

commit1951c2349f8b129ae0cbc44409bc9b9f08328a04 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 20 Jul 2011, 08:13 (15 years ago) parent7173686
1 file changed+1−1
src/markdown2pdf.hs+1−1
src/markdown2pdf.hs+1−1
@@ -48,7 +48,7 @@ runPandoc inputsAndArgs output = do
4848runLatexRaw :: String -> FilePath -> IO (Either (Either String String) FilePath)
4949runLatexRaw latexProgram file = do
5050 -- 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",
5252 takeDirectory file, dropExtension file] >> return ()
5353 let pdfFile = replaceExtension file "pdf"
5454 let logFile = replaceExtension file "log"