From f5e33e0dce8a4f08e23a59a8b270d3dad94601e0 Mon Sep 17 00:00:00 2001 From: Alex Vong Date: Sat, 19 Sep 2015 19:12:35 +0800 Subject: Set the template variable $hyphenate$ to true by default * src/Text/Pandoc/Writers/Man.hs: Set $hyphenate$ to be true. --- src/Text/Pandoc/Writers/Man.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text/Pandoc/Writers/Man.hs') diff --git a/src/Text/Pandoc/Writers/Man.hs b/src/Text/Pandoc/Writers/Man.hs index f91367eb9..08d1ee189 100644 --- a/src/Text/Pandoc/Writers/Man.hs +++ b/src/Text/Pandoc/Writers/Man.hs @@ -85,6 +85,7 @@ pandocToMan opts (Pandoc meta blocks) = do let context = defField "body" main $ setFieldsFromTitle $ defField "has-tables" hasTables + $ defField "hyphenate" True $ metadata if writerStandalone opts then return $ renderTemplate' (writerTemplate opts) context -- cgit v1.2.3 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(+) (limited to 'src/Text/Pandoc/Writers/Man.hs') 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