From 51c0ae5a66b9cf58632cd9d8eb324802f60bd6e2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 11 Dec 2017 07:54:33 -0800 Subject: `--pdf-engine-opt`: fix bug where option order was reversed. Closes #4137. --- src/Text/Pandoc/App.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index 3dd4f214c..f7d6450cc 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -1405,7 +1405,7 @@ options = (ReqArg (\arg opt -> do let oldArgs = optPdfEngineArgs opt - return opt { optPdfEngineArgs = arg : oldArgs }) + return opt { optPdfEngineArgs = oldArgs ++ [arg]}) "STRING") "" -- "Flags to pass to the PDF-engine, all instances of this option are accumulated and used" -- cgit v1.2.3