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

Generalize colspan handling to handle missing header rows #203

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

sbrown61
Copy link
Contributor

@sbrown61 sbrown61 commented Mar 4, 2025

Fix and new test cases for tables with a colspan in the first row but no header row is present.

Before this fix, colspan is properly handled when there is a table header or one is inferred. But if there is not a table header and there is a colspan in the first row of the table, the empty header (and "---" separator row) ignore the colspan attribute.

To fix this, the code creating full_colspan was moved outside the if statement so that it could also be referenced in the elif.

…where colspan is in first row but heading is missing
@chrispy-snps chrispy-snps merged commit 7908f14 into matthewwithanm:develop Mar 5, 2025
1 check passed
@chrispy-snps
Copy link
Collaborator

@sbrown61 - nice clean pull request with a concise fix and unit tests - thank you!

@chrispy-snps chrispy-snps changed the title Fix issue #198: Generalize handling of colspan for missing head Generalize colspan handling to handle missing header rows Mar 5, 2025
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.

None yet

2 participants