summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/PDF.hs
diff options
context:
space:
mode:
authormb21 <mb21@users.noreply.github.com>2015-01-11 15:18:40 +0100
committermb21 <mb21@users.noreply.github.com>2015-01-11 15:24:04 +0100
commit6aa41b86d01f6120a3c0e8c63578b626f174251d (patch)
tree2cea0ae5c0db9e2cdfce275f2c3c0bb2b031a7d2 /src/Text/Pandoc/PDF.hs
parente2d86dfe286085cc33b513b17444e846fae0ce30 (diff)
don't log Try xelatex if xelatex already in use, closes #1832
Diffstat (limited to 'src/Text/Pandoc/PDF.hs')
-rw-r--r--src/Text/Pandoc/PDF.hs5
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 ""