aboutsummaryrefslogtreecommitdiff
path: root/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2022-10-06 12:57:46 +0200
committerAlbert Krewinkel <[email protected]>2022-10-06 13:45:55 +0200
commitafbf732a830074cb01804d9808cc8334a1572c8e (patch)
tree28f9780e98ce25e450ef3ddbccb2116dba89e3b0 /pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs
parent3206506696d30063c4999dbcb3ce9080018740d2 (diff)
Lua: cleanup module dependencies
Ensures a cleaner module dependency graph.
Diffstat (limited to 'pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs')
-rw-r--r--pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs
index 33349870c..16305b76e 100644
--- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs
+++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs
@@ -204,7 +204,7 @@ stringify idx = forcePeek . retrieving "stringifyable element" $
-- | Converts an old/simple table into a normal table block element.
from_simple_table :: SimpleTable -> LuaE PandocError NumResults
from_simple_table (SimpleTable capt aligns widths head' body) = do
- Lua.push $ Table
+ pushBlock $ Table
nullAttr
(Caption Nothing [Plain capt | not (null capt)])
(zipWith (\a w -> (a, toColWidth w)) aligns widths)