Merge pull request #1870 from mb21/fix-xelatex-recommendation
Don't log "Try xelatex..." if xelatex already in use
This commit is contained in:
commit
519b80f06d
1 changed files with 3 additions and 2 deletions
|
@ -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 ""
|
||||
|
|
Loading…
Add table
Reference in a new issue