pqzx / html2docx

Convert html to docx
MIT License
69 stars 49 forks source link

"IndexError: list index out of range" when using rowspan attribute #54

Open Jobaerhossains opened 1 year ago

Jobaerhossains commented 1 year ago
<table>
  <tr>
    <th colspan="2">Country</th>
   <th></th>
  </tr>
   <tr>
         <td>Dhaka</td>
         <td rowspan="2">Bangladesh</td>
      </tr>
      <tr>
         <td>Sylhet</td>
      </tr>
</table>

Expected Output:

Country
Dhaka Bangladesh
Sylhet

But It's getting belows error.

return self._cells[cell_idx]
IndexError: list index out of range

When i remove rowspan. It turns no error.