From 44c4660a31fcb6034a7368a3596ab7a252a87ad4 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sat, 25 Jul 2020 20:29:21 +0200 Subject: Lua filters: make attr argument optional in Table constructor This changes the Lua API. It is highly unlikely for this change to affect existing filters, since the documentation for the new Table constructor (and type) was incomplete and partly wrong before. The Lua API is now more consistent, as all constructors for elements with attributes now take attributes as the last parameter. --- src/Text/Pandoc/Lua/Marshaling/AST.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Lua/Marshaling/AST.hs') diff --git a/src/Text/Pandoc/Lua/Marshaling/AST.hs b/src/Text/Pandoc/Lua/Marshaling/AST.hs index 359ed6c30..7a75047ae 100644 --- a/src/Text/Pandoc/Lua/Marshaling/AST.hs +++ b/src/Text/Pandoc/Lua/Marshaling/AST.hs @@ -170,7 +170,7 @@ pushBlock = \case Plain blcks -> pushViaConstructor "Plain" blcks RawBlock f cs -> pushViaConstructor "RawBlock" f cs Table attr blkCapt specs thead tbody tfoot -> - pushViaConstructor "Table" attr blkCapt specs thead tbody tfoot + pushViaConstructor "Table" blkCapt specs thead tbody tfoot attr -- | Return the value at the given index as block if possible. peekBlock :: StackIndex -> Lua Block -- cgit v1.2.3