From 7e8cfc099017b554dc4105a8c56544867784a9f8 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 27 Dec 2017 09:11:03 +0100 Subject: Fix custom writer regression An additional `Lua.call` was left in during refactoring, which caused an exception "attempt to call a nil value". Fixes: #4202 --- src/Text/Pandoc/Writers/Custom.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Text/Pandoc/Writers/Custom.hs b/src/Text/Pandoc/Writers/Custom.hs index 72f443ed0..6a6fabf1d 100644 --- a/src/Text/Pandoc/Writers/Custom.hs +++ b/src/Text/Pandoc/Writers/Custom.hs @@ -102,8 +102,7 @@ writeCustom luaFile opts doc@(Pandoc meta _) = do -- to handle this more gracefully): when (stat /= OK) $ tostring 1 >>= throw . PandocLuaException . UTF8.toString - call 0 0 - -- TODO - call hierarchicalize, so we have that info + -- TODO - call hierarchicalize, so we have that info rendered <- docToCustom opts doc context <- metaToJSON opts blockListToCustom -- cgit v1.2.3