From 6aa41b86d01f6120a3c0e8c63578b626f174251d Mon Sep 17 00:00:00 2001 From: mb21 Date: Sun, 11 Jan 2015 15:18:40 +0100 Subject: don't log Try xelatex if xelatex already in use, closes #1832 --- src/Text/Pandoc/PDF.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 "" -- cgit v1.2.3