G
YouTube TikTok Games
Skip to content

Problems with rowspans #7

Open
Open

Description

@fedor-ivn

Hello! I've been using this package and stuck with the bug.

I have a table like that in HTML -> example
But when I export it to excel with ExcelParser, I have some extra rows in the excel table. Take a look at the screenshot, I drew them in red.
table

The code I used to generate the .xslx file

from html2excel import ExcelParser
parser = ExcelParser('./test.html')
parser.to_excel('./converted_file.xlsx')

Activity

  1. Annmayn commented on Jul 7, 2021

    @Annmayn
    Owner

    I'm not sure how browsers parse html files but they do seem to adjust even if our html tables are erroneous. Taking that approach here would be disingenuous as the goal of this library is to create an exact replica of how it would look on excel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions