Skip to content

Commit 6014c12

Browse files
committed
lua - don't use nil to create empty caption
1 parent 3364332 commit 6014c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/filters/quarto-pre/table-classes.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function table_classes()
5353
attr.classes = pandoc.List()
5454
tbl.caption.long[#tbl.caption.long] = pandoc.Plain(createTableCaption(caption_parsed, attr))
5555
if #quarto.utils.as_inlines(tbl.caption.long) == 0 then
56-
tbl.caption.long = nil
56+
tbl.caption.long = pandoc.Blocks({})
5757
end
5858
return tbl
5959
end,

0 commit comments

Comments
 (0)