From 1187ca3517b9fdd625e4dadda58b1fbf8862d55b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 23 Jul 2019 21:40:24 -0700 Subject: Templates: Change type of renderTemplate'. Return value is now Text rather than being polymorphic. This makes room for upcoming removal of the TemplateTarget class from doctemplates. Other code modified accordingly, and should compile with both current and upcoming version of doctemplates. --- src/Text/Pandoc/Writers/Custom.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Writers/Custom.hs') diff --git a/src/Text/Pandoc/Writers/Custom.hs b/src/Text/Pandoc/Writers/Custom.hs index 091310c24..5e2f3a583 100644 --- a/src/Text/Pandoc/Writers/Custom.hs +++ b/src/Text/Pandoc/Writers/Custom.hs @@ -114,7 +114,7 @@ writeCustom luaFile opts doc@(Pandoc meta _) = do Just tpl -> case applyTemplate (pack tpl) $ setField "body" body context of Left e -> throw (PandocTemplateError e) - Right r -> return (pack r) + Right r -> return r docToCustom :: WriterOptions -> Pandoc -> Lua String docToCustom opts (Pandoc (Meta metamap) blocks) = do -- cgit v1.2.3