PDF: Fix logic error in runTeXProgram.
We were running the tex program one more time than requested. This should speed up pdf production.
This commit is contained in:
parent
c30eada4ee
commit
55e8cb07d0
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ runTeXProgram verbosity program args runNumber numRuns tmpDir source = do
|
|||
putStrLn $ "[makePDF] Run #" ++ show runNumber
|
||||
BL.hPutStr stdout out
|
||||
putStr "\n"
|
||||
if runNumber <= numRuns
|
||||
if runNumber < numRuns
|
||||
then runTeXProgram verbosity program args (runNumber + 1) numRuns tmpDir source
|
||||
else do
|
||||
let pdfFile = replaceDirectory (replaceExtension file ".pdf") tmpDir
|
||||
|
|
Loading…
Add table
Reference in a new issue