aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:12:14 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:12:14 +0000
commit4806628c8d8ef9e696a981e6f47ede2b3a6f4d48 (patch)
treec384566dedd745c892d511590f5b98bce72f6750 /src/pandoc.hs
parent359f1109745afbfb1a38754576ba875a406de122 (diff)
downloadpandoc-4806628c8d8ef9e696a981e6f47ede2b3a6f4d48.tar.gz
Added 'standalone' variable, use in templates.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1697 788f1e2b-df1e-0410-8736-df70ead52e1b
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"]