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
This commit is contained in:
Albert Krewinkel 2017-12-27 09:11:03 +01:00
parent 47455715d3
commit 7e8cfc0990
No known key found for this signature in database
GPG key ID: 388DC0B21F631124

View file

@ -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