Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with rowspans #7

Open
fedor-ivn opened this issue Jul 6, 2021 · 1 comment
Open

Problems with rowspans #7

fedor-ivn opened this issue Jul 6, 2021 · 1 comment

Comments

@fedor-ivn
Copy link

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')
@Annmayn
Copy link
Owner

Annmayn commented Jul 7, 2021

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants