Skip to content

fully close most HTML tags in niceTables#1438

Merged
somiaj merged 1 commit into
openwebwork:PG-2.21from
Alex-Jordan:nicetable-missingcell
Jun 14, 2026
Merged

fully close most HTML tags in niceTables#1438
somiaj merged 1 commit into
openwebwork:PG-2.21from
Alex-Jordan:nicetable-missingcell

Conversation

@Alex-Jordan

Copy link
Copy Markdown
Contributor

This addresses #1182. If the tag function is making an HTML tag and there is no content, close it like <div></div>. Only for a few exceptional tags, close it like <br>. The list of exceptional tags is not complete, but the ones left out are not reasonably going to arise in niceTables. In fact, I'm not sure the ones I listed will arise form niceTables either, but it's harmless to list them.

@drgrice1 drgrice1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. Fixes my initial MWE in the issue at least.

@Alex-Jordan Alex-Jordan force-pushed the nicetable-missingcell branch from aef84a8 to a369aff Compare June 13, 2026 22:46

@somiaj somiaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fixes the issue.

@somiaj somiaj merged commit db76ca5 into openwebwork:PG-2.21 Jun 14, 2026
3 checks passed
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.

3 participants