dude icon indicating copy to clipboard operation
dude copied to clipboard

Explode merged table cells (colspan and rowspan)

Open roniemartinez opened this issue 2 years ago • 0 comments

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>

roniemartinez avatar May 25 '22 16:05 roniemartinez