aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pandoc.hs')
-rw-r--r--src/pandoc.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pandoc.hs b/src/pandoc.hs
index 0eb64c9ba..2f85906d5 100644
--- a/src/pandoc.hs
+++ b/src/pandoc.hs
@@ -315,8 +315,7 @@ options =
let (key,val) = case break (`elem` ":=") arg of
(k,_:v) -> (k,v)
(k,_) -> (k,"true")
- let newvars = optVariables opt ++ [(key,val)]
- return opt{ optVariables = newvars })
+ return opt{ optVariables = (key,val) : optVariables opt })
"KEY[:VALUE]")
"" -- "Use custom template"