git.iko.soy/typeable/pandoc
on master help sign in
markdown2pdf: Added -interaction nonstopmode.

Otherwise it can hang if the error requests user input!

commit8ed75af42c82728e9b8d746f04b18ed5ab8eace8 authorJohn MacFarlane <jgm@berkeley.edu> dateSat 30 Jul 2011, 00:03 (15 years ago) parent7d1940e
1 file changed+2−2
src/markdown2pdf.hs+2−2
src/markdown2pdf.hs+2−2
@@ -87,8 +87,8 @@ runPandoc inputsAndArgs output = do
8787runLatexRaw :: String -> FilePath -> IO (Either (Either String String) FilePath)
8888runLatexRaw latexProgram file = do
8989 -- we ignore the ExitCode because pdflatex always fails the first time
90− run latexProgram ["-halt-on-error", "-output-directory",
91− takeDirectory file, dropExtension file] >> return ()
90+ run latexProgram ["-halt-on-error", "-interaction", "nonstopmode",
91+ "-output-directory", takeDirectory file, dropExtension file] >> return ()
9292 let pdfFile = replaceExtension file "pdf"
9393 let logFile = replaceExtension file "log"
9494 txt <- tryJust (guard . isDoesNotExistError)