From bdb98dbcb6921db884f047495eb2aa4f944e9f03 Mon Sep 17 00:00:00 2001 From: Eetu Rantanen <75437856+Eetwalt@users.noreply.github.com> Date: Wed, 1 Jul 2026 09:32:25 +0900 Subject: [PATCH] emit rowspan and colspan without column definitions --- lua/wikis/commons/Widget/Table2/Cell.lua | 2 +- lua/wikis/commons/Widget/Table2/CellHeader.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/wikis/commons/Widget/Table2/Cell.lua b/lua/wikis/commons/Widget/Table2/Cell.lua index 7ca1fec3633..51748499df1 100644 --- a/lua/wikis/commons/Widget/Table2/Cell.lua +++ b/lua/wikis/commons/Widget/Table2/Cell.lua @@ -43,7 +43,7 @@ local function Table2Cell(props, context) props.align, props.nowrap, props.shrink, - props.attributes + ColumnUtil.buildAttributes(props) ), classes = props.classes, children = children, diff --git a/lua/wikis/commons/Widget/Table2/CellHeader.lua b/lua/wikis/commons/Widget/Table2/CellHeader.lua index 4230ed2f10d..6493d57ed88 100644 --- a/lua/wikis/commons/Widget/Table2/CellHeader.lua +++ b/lua/wikis/commons/Widget/Table2/CellHeader.lua @@ -52,7 +52,7 @@ local function Table2CellHeader(props, context) -- Skip context lookups and property merging if there are no column definitions if #columns == 0 then local align = props.align - local attributes = props.attributes or {} + local attributes = ColumnUtil.buildAttributes(props) if align == 'right' or align == 'center' then attributes['data-align'] = align end