dude
dude copied to clipboard
Explode merged table cells (colspan and rowspan)
It will be easier to extract individual table cell data if colspan
and rowspan
are exploded into single cells.
Add options (--explode-rowspan
, --explode-colspan
and/or --explode-table-cells
) to use.
For example, this table:
<tr>
<td rowspan="2">Two rows</td>
<td colspan="2">Two columns</td>
</tr>
<tr>
<td>Single A</td>
<td>Single B</td>
</tr>
</table>
Should be converted to this:
<tr>
<td>Two rows</td>
<td>Two columns</td>
<td>Two columns</td>
</tr>
<tr>
<td>Two rows</td>
<td>Single A</td>
<td>Single B</td>
</tr>
</table>