Set the template variable $pandoc-version$ to pandocVersion by default.

* src/Text/Pandoc/Writers/Man.hs: Set $pandoc-version$ to be pandocVersion.
This commit is contained in:
Alex Vong 2015-09-25 04:05:58 +08:00
parent d7a19c22be
commit 319832cc19

View file

@ -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