Skip to content

Fix bug in to_wikitext() with caption attributes#421

Merged
kristian-clausal merged 1 commit into
mainfrom
table-caption-attributes-bug
May 27, 2026
Merged

Fix bug in to_wikitext() with caption attributes#421
kristian-clausal merged 1 commit into
mainfrom
table-caption-attributes-bug

Conversation

@kristian-clausal
Copy link
Copy Markdown
Collaborator

Fixes #420

When translating a WikiNode TABLE_CAPTION with attributes back into wikitext, we omitted a final | pipe character necessary for proper parsing of caption attributes.

Note that this is not necessary for TABLE attributes.

This bug was only recently discovered because we didn't do anything with table captions before...

When translating a WikiNode TABLE_CAPTION with attributes
back into wikitext, we omitted a final `|` pipe character
necessary for proper parsing of caption attributes.

Note that this is not necessary for TABLE attributes.

This bug was only recently discovered because we didn't
do anything with table captions before...
@kristian-clausal kristian-clausal merged commit 7f4db16 into main May 27, 2026
12 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.

Some kind of parsing error with table captions, attributes parsed as children.

1 participant