aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-07-20 08:13:00 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2011-07-20 08:13:00 -0700
commit1951c2349f8b129ae0cbc44409bc9b9f08328a04 (patch)
tree6945857ee84cf95e19360230f439dcadca2d9dae /src
parent71736869bb6a3ff50505883fe3d98af07f7b114d (diff)
downloadpandoc-1951c2349f8b129ae0cbc44409bc9b9f08328a04.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/markdown2pdf.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/markdown2pdf.hs b/src/markdown2pdf.hs
index 005717bf0..4ead10479 100644
--- a/src/markdown2pdf.hs
+++ b/src/markdown2pdf.hs
@@ -48,7 +48,7 @@ runPandoc inputsAndArgs output = do
runLatexRaw :: String -> FilePath -> IO (Either (Either String String) FilePath)
runLatexRaw latexProgram file = do
-- we ignore the ExitCode because pdflatex always fails the first time
- run latexProgram ["-interaction=batchmode", "-output-directory",
+ run latexProgram ["-halt-on-error", "-output-directory",
takeDirectory file, dropExtension file] >> return ()
let pdfFile = replaceExtension file "pdf"
let logFile = replaceExtension file "log"