diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2017-12-27 09:11:03 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2017-12-27 09:16:33 +0100 |
commit | 7e8cfc099017b554dc4105a8c56544867784a9f8 (patch) | |
tree | f32489551e9b6bb0ca67aefc6b61c6281f1441f3 /src | |
parent | 47455715d3bdfa5902d8ea90fbb2fd0a6f2d5815 (diff) | |
download | pandoc-7e8cfc099017b554dc4105a8c56544867784a9f8.tar.gz |
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')
-rw-r--r-- | src/Text/Pandoc/Writers/Custom.hs | 3 |
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 |