html2text icon indicating copy to clipboard operation
html2text copied to clipboard

[Bug] Assumes first row is always table header even if it is not

Open roniemartinez opened this issue 3 years ago • 2 comments

The script:

print(
        html2text.html2text(
            """
            <table>
            <tbody>
            <tr><td>item a</td><td>item b</td></tr>
            <tr><td>item c</td><td>item d</td></tr>
            </tbody>
            </table>
            """
        )
    )

Results to:

item a| item b  
---|---  
item c| item d
  • Version by html2text --version: 2020.1.16
  • Test script
  • Python version python --version: Python 3.10.2

roniemartinez avatar May 25 '22 11:05 roniemartinez

Maybe this will fix the problem https://github.com/Alir3z4/html2text/compare/master...LEv145:html2text:master

LEv145 avatar Jul 18 '24 22:07 LEv145