diff options
author | mb21 <mb21@users.noreply.github.com> | 2015-01-11 15:18:40 +0100 |
---|---|---|
committer | mb21 <mb21@users.noreply.github.com> | 2015-01-11 15:24:04 +0100 |
commit | 6aa41b86d01f6120a3c0e8c63578b626f174251d (patch) | |
tree | 2cea0ae5c0db9e2cdfce275f2c3c0bb2b031a7d2 /src/Text/Pandoc | |
parent | e2d86dfe286085cc33b513b17444e846fae0ce30 (diff) | |
download | pandoc-6aa41b86d01f6120a3c0e8c63578b626f174251d.tar.gz |
don't log Try xelatex if xelatex already in use, closes #1832
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/PDF.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs index 75bd489d1..ea6699ac4 100644 --- a/src/Text/Pandoc/PDF.hs +++ b/src/Text/Pandoc/PDF.hs @@ -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 "" |