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

fix: Handle unblance table errors #801

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kesara
Copy link
Member

@kesara kesara commented Jun 22, 2022

fixes #740

hspan = cell.rowspan+k-i if cell.rowspan else minspan
if hspan > 0 and hspan < minspan:
minspan = hspan
if hasattr(cell, 'origin'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you may be better off with a single check_cell_has_origin(cell) that dies on error and gets called in all these places.

Clearly, the need for this is a code smell.

See also #740 why this is solving the crash, but not all of the problem.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree.
Might be worth looking to simplify the text table generation function.

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

Successfully merging this pull request may close these issues.

text rendering of table leads to crash
2 participants