aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pandoc.hs')
-rw-r--r--src/pandoc.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pandoc.hs b/src/pandoc.hs
index 26bf0abb8..a18e069cc 100644
--- a/src/pandoc.hs
+++ b/src/pandoc.hs
@@ -212,7 +212,10 @@ options =
, Option "s" ["standalone"]
(NoArg
- (\opt -> return opt { optStandalone = True }))
+ (\opt -> do
+ let newvars = ("standalone", "yes") : optVariables opt
+ return opt { optStandalone = True,
+ optVariables = newvars }))
"" -- "Include needed header and footer on output"
, Option "o" ["output"]