Skip to content

Commit 11854f4

Browse files
committed
Suppress rowspan and colspan from tables unless present AND non-zero
1 parent 7127472 commit 11854f4

File tree

1 file changed

+4
-4
lines changed
  • maven-plugins/sitegen-maven-plugin/src/main/resources/templates/vuetify

1 file changed

+4
-4
lines changed

maven-plugins/sitegen-maven-plugin/src/main/resources/templates/vuetify/block_table.ftl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ TODO:
5151
<#list row.cells as cell>
5252
<#if cell.content?is_enumerable>
5353
<#list cell.content as cellcontent><td class="${cell_classes}"
54-
<#if cell.rowspan??> rowspan="${cell.rowspan}"</#if>
55-
<#if cell.colspan??> colspan="${cell.colspan}"</#if>
54+
<#if (cell.rowspan!0) != 0> rowspan="${cell.rowspan}"</#if>
55+
<#if (cell.colspan!0) != 0> colspan="${cell.colspan}"</#if>
5656
>${cellcontent}</td></#list>
5757
<#else><td class="${cell_classes}"
58-
<#if cell.rowspan??> rowspan="${cell.rowspan}"</#if>
59-
<#if cell.colspan??> colspan="${cell.colspan}"</#if>
58+
<#if (cell.rowspan!0) != 0> rowspan="${cell.rowspan}"</#if>
59+
<#if (cell.colspan!0) != 0> colspan="${cell.colspan}"</#if>
6060
>${cell.content}</td>
6161
</#if>
6262
</#list>

0 commit comments

Comments
 (0)