Skip to content

Commit

Permalink
Suppress rowspan and colspan from tables unless present AND non-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
tjquinno committed Jan 23, 2025
1 parent 7127472 commit 11854f4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ TODO:
<#list row.cells as cell>
<#if cell.content?is_enumerable>
<#list cell.content as cellcontent><td class="${cell_classes}"
<#if cell.rowspan??> rowspan="${cell.rowspan}"</#if>
<#if cell.colspan??> colspan="${cell.colspan}"</#if>
<#if (cell.rowspan!0) != 0> rowspan="${cell.rowspan}"</#if>
<#if (cell.colspan!0) != 0> colspan="${cell.colspan}"</#if>
>${cellcontent}</td></#list>
<#else><td class="${cell_classes}"
<#if cell.rowspan??> rowspan="${cell.rowspan}"</#if>
<#if cell.colspan??> colspan="${cell.colspan}"</#if>
<#if (cell.rowspan!0) != 0> rowspan="${cell.rowspan}"</#if>
<#if (cell.colspan!0) != 0> colspan="${cell.colspan}"</#if>
>${cell.content}</td>
</#if>
</#list>
Expand Down

0 comments on commit 11854f4

Please sign in to comment.