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
commit7e8cfc099017b554dc4105a8c56544867784a9f8
authorAlbert Krewinkel <albert@zeitkraut.de>
dateWed 27 Dec 2017, 09:11 (9 years ago)
parent4745571
src/Text/Pandoc/Writers/Custom.hs+1−2
@@ -102,8 +102,7 @@ writeCustom luaFile opts doc@(Pandoc meta _) = do
102102 -- to handle this more gracefully):
103103 when (stat /= OK) $
104104 tostring 1 >>= throw . PandocLuaException . UTF8.toString
105− call 0 0
106− -- TODO - call hierarchicalize, so we have that info
105+ -- TODO - call hierarchicalize, so we have that info
107106 rendered <- docToCustom opts doc
108107 context <- metaToJSON opts
109108 blockListToCustom