aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-12-11 07:54:33 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-12-11 07:55:24 -0800
commit51c0ae5a66b9cf58632cd9d8eb324802f60bd6e2 (patch)
tree528a46fd3302d083f921916ae5b21a83a97408bd
parent1a5e494cb501a6110c619abdf443bb9895afe94a (diff)
downloadpandoc-51c0ae5a66b9cf58632cd9d8eb324802f60bd6e2.tar.gz
`--pdf-engine-opt`: fix bug where option order was reversed.
Closes #4137.
-rw-r--r--src/Text/Pandoc/App.hs2
1 files changed, 1 insertions, 1 deletions
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"