Skip to content

Conversation

@Yorwba
Copy link
Contributor

@Yorwba Yorwba commented Nov 19, 2025

Table syntax allows separating cells using either a single | at the beginning of the line or || elsewhere. If the first cell is completely empty, this results in |||, which wikitextprocessor currently parses like || followed by | instead. This leads to incorrect results for example with the conjugation table for 돌아가시다 on English Wiktionary.

This PR fixes this by giving the single | token higher precedence if it occurs at the beginning of a line.

@xxyzz xxyzz force-pushed the empty-first-table-cell branch from 66f170a to 44d1268 Compare November 20, 2025 01:49
@xxyzz
Copy link
Collaborator

xxyzz commented Nov 20, 2025

I add some changes to fix some tests in wiktextract.

Copy link
Collaborator

@kristian-clausal kristian-clausal left a comment

Choose a reason for hiding this comment

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

This seems good, thanks for catching this.

@kristian-clausal kristian-clausal merged commit cf762e7 into tatuylonen:main Nov 20, 2025
6 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