aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-07-30 00:03:55 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2011-07-30 00:03:55 -0700
commit8ed75af42c82728e9b8d746f04b18ed5ab8eace8 (patch)
tree241e3fab8afc6763abb721b13c6b84e4829678d5
parent7d1940e03715e7822250dfe92574f70d687302d0 (diff)
downloadpandoc-8ed75af42c82728e9b8d746f04b18ed5ab8eace8.tar.gz
markdown2pdf: Added -interaction nonstopmode.
Otherwise it can hang if the error requests user input!
-rw-r--r--src/markdown2pdf.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/markdown2pdf.hs b/src/markdown2pdf.hs
index 10b97cbc1..d6ee39dab 100644
--- a/src/markdown2pdf.hs
+++ b/src/markdown2pdf.hs
@@ -87,8 +87,8 @@ 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 ["-halt-on-error", "-output-directory",
- takeDirectory file, dropExtension file] >> return ()
+ run latexProgram ["-halt-on-error", "-interaction", "nonstopmode",
+ "-output-directory", takeDirectory file, dropExtension file] >> return ()
let pdfFile = replaceExtension file "pdf"
let logFile = replaceExtension file "log"
txt <- tryJust (guard . isDoesNotExistError)