From 319832cc195ea8ae19ab757bacc401c031f75f20 Mon Sep 17 00:00:00 2001 From: Alex Vong Date: Fri, 25 Sep 2015 04:05:58 +0800 Subject: Set the template variable $pandoc-version$ to pandocVersion by default. * src/Text/Pandoc/Writers/Man.hs: Set $pandoc-version$ to be pandocVersion. --- src/Text/Pandoc/Writers/Man.hs | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3