aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Vong <alexvong1995@gmail.com>2015-09-25 04:05:58 +0800
committerAlex Vong <alexvong1995@gmail.com>2015-10-01 02:24:34 +0800
commit319832cc195ea8ae19ab757bacc401c031f75f20 (patch)
treebbc63a090afd5af9e9ec9a510ef0030e0a8aee35 /src
parentd7a19c22be073854ea3e2d677913c1d81991b182 (diff)
downloadpandoc-319832cc195ea8ae19ab757bacc401c031f75f20.tar.gz
Set the template variable $pandoc-version$ to pandocVersion by default.
* src/Text/Pandoc/Writers/Man.hs: Set $pandoc-version$ to be pandocVersion.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Man.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/Man.hs b/src/Text/Pandoc/Writers/Man.hs
index 08d1ee189..6b1e42394 100644
--- a/src/Text/Pandoc/Writers/Man.hs
+++ b/src/Text/Pandoc/Writers/Man.hs
@@ -86,6 +86,7 @@ pandocToMan opts (Pandoc meta blocks) = do
$ setFieldsFromTitle
$ defField "has-tables" hasTables
$ defField "hyphenate" True
+ $ defField "pandoc-version" pandocVersion
$ metadata
if writerStandalone opts
then return $ renderTemplate' (writerTemplate opts) context