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

Several fixes for table module #3289

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Several fixes for table module #3289

merged 1 commit into from
Mar 21, 2024

Conversation

JorjMcKie
Copy link
Collaborator

  • Add new method for outputting the table as a markdown string.

  • Address errors in computing the table header object: We now allow None as the cell value, because this will be resolved where needed (e.g. in the pandas DataFrame).

We previously tried to enforce rect-like tuples in all header cell bboxes, however this fails for tables with all-None columns. This fix enables this and constructs an empty string in the corresponding cell string.

We now correctly include start / stop points of lines in the bbox of the clustered graphic. We previously joined the line's rectangle - which had no effect because this is always empty.

- Add new method for outputting the table as a markdown string.

- Address errors in computing the table header object:
We now allow None as the cell value, because this will be resolved where needed (e.g. in the pandas DataFrame).

We previously tried to enforce rect-like tuples in all header cell bboxes, however this fails for tables with all-None columns.
This fix enables this and constructs an empty string in the corresponding cell string.

We now correctly include start / stop points of lines in the bbox of the clustered graphic.
We previously joined the line's rectangle - which had no effect because this is always empty.
@JorjMcKie JorjMcKie merged commit c724fb4 into main Mar 21, 2024
2 checks passed
@JorjMcKie JorjMcKie deleted the better-headers branch March 21, 2024 14:56
@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants