summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Custom.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-12-27 09:11:03 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2017-12-27 09:16:33 +0100
commit7e8cfc099017b554dc4105a8c56544867784a9f8 (patch)
treef32489551e9b6bb0ca67aefc6b61c6281f1441f3 /src/Text/Pandoc/Writers/Custom.hs
parent47455715d3bdfa5902d8ea90fbb2fd0a6f2d5815 (diff)
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
Diffstat (limited to 'src/Text/Pandoc/Writers/Custom.hs')
-rw-r--r--src/Text/Pandoc/Writers/Custom.hs3
1 files changed, 1 insertions, 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