Skip to content

Commit

Permalink
regression: path to --pdf-engine works again
Browse files Browse the repository at this point in the history
fixes jgm#4681
  • Loading branch information
mb21 committed Jun 2, 2018
1 parent 0fc7d38 commit 4b23c1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Text/Pandoc/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ pdfWriterAndProg mWriter mEngine = do
where
go Nothing Nothing = Right ("latex", "pdflatex")
go (Just writer) Nothing = (writer,) <$> engineForWriter writer
go Nothing (Just engine) = (,engine) <$> writerForEngine engine
go Nothing (Just engine) = (,engine) <$> writerForEngine (takeBaseName engine)
go (Just writer) (Just engine) =
case find (== (baseWriterName writer, engine)) engines of
case find (== (baseWriterName writer, takeBaseName engine)) engines of
Just _ -> Right (writer, engine)
Nothing -> Left $ "pdf-engine " ++ engine ++
" is not compatible with output format " ++ writer
Expand Down

0 comments on commit 4b23c1a

Please sign in to comment.