diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-12-31 01:12:14 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-12-31 01:12:14 +0000 |
commit | 4806628c8d8ef9e696a981e6f47ede2b3a6f4d48 (patch) | |
tree | c384566dedd745c892d511590f5b98bce72f6750 /src/pandoc.hs | |
parent | 359f1109745afbfb1a38754576ba875a406de122 (diff) | |
download | pandoc-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.hs | 5 |
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"] |