diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-12-11 07:54:33 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-12-11 07:55:24 -0800 |
commit | 51c0ae5a66b9cf58632cd9d8eb324802f60bd6e2 (patch) | |
tree | 528a46fd3302d083f921916ae5b21a83a97408bd /src/Text/Pandoc | |
parent | 1a5e494cb501a6110c619abdf443bb9895afe94a (diff) | |
download | pandoc-51c0ae5a66b9cf58632cd9d8eb324802f60bd6e2.tar.gz |
`--pdf-engine-opt`: fix bug where option order was reversed.
Closes #4137.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/App.hs | 2 |
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" |