From 2fb9240340cb0499175b110c453a51a106d18f43 Mon Sep 17 00:00:00 2001 From: Tim Quinn Date: Mon, 27 Jan 2025 14:40:57 -0600 Subject: [PATCH] Suppress rowspan and colspan from tables unless present AND non-zero (#1102) --- .../src/main/resources/templates/vuetify/block_table.ftl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maven-plugins/sitegen-maven-plugin/src/main/resources/templates/vuetify/block_table.ftl b/maven-plugins/sitegen-maven-plugin/src/main/resources/templates/vuetify/block_table.ftl index df5b6dc3b..bee5ef19f 100644 --- a/maven-plugins/sitegen-maven-plugin/src/main/resources/templates/vuetify/block_table.ftl +++ b/maven-plugins/sitegen-maven-plugin/src/main/resources/templates/vuetify/block_table.ftl @@ -51,12 +51,12 @@ TODO: <#list row.cells as cell> <#if cell.content?is_enumerable> <#list cell.content as cellcontent> rowspan="${cell.rowspan}" -<#if cell.colspan??> colspan="${cell.colspan}" +<#if (cell.rowspan!0) != 0> rowspan="${cell.rowspan}" +<#if (cell.colspan!0) != 0> colspan="${cell.colspan}" >${cellcontent} <#else> rowspan="${cell.rowspan}" -<#if cell.colspan??> colspan="${cell.colspan}" +<#if (cell.rowspan!0) != 0> rowspan="${cell.rowspan}" +<#if (cell.colspan!0) != 0> colspan="${cell.colspan}" >${cell.content}