Skip to content

Commit

Permalink
don't log Try xelatex if xelatex already in use, closes jgm#1832
Browse files Browse the repository at this point in the history
  • Loading branch information
mb21 committed Jan 11, 2015
1 parent e2d86df commit 6aa41b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Text/Pandoc/PDF.hs
Expand Up @@ -146,8 +146,9 @@ tex2pdf' verbose tmpDir program source = do
let logmsg = extractMsg log'
let extramsg =
case logmsg of
x | "! Package inputenc Error" `BC.isPrefixOf` x ->
"\nTry running pandoc with --latex-engine=xelatex."
x | ("! Package inputenc Error" `BC.isPrefixOf` x
&& program /= "xelatex")
-> "\nTry running pandoc with --latex-engine=xelatex."
_ -> ""
return $ Left $ logmsg <> extramsg
(ExitSuccess, Nothing) -> return $ Left ""
Expand Down

0 comments on commit 6aa41b8

Please sign in to comment.