Page MenuHomePhabricator

Parsoid doesn't roundtrip multiple category links in a table cell
Open, NormalPublic

Description

Given the simple code for a table below

==VE Impact==
{| class="wikitable sortable" 
|-
| [[:Category:BIG PLACE|BIG PLACE]] [[Category:BIG PLACE]] || Program Management Director 
|-
|}

Editing with VE changes the code to

==VE Impact==
{| class="wikitable sortable" 
|-
| [[:Category:BIG PLACE|BIG PLACE]] 
[[Category:BIG PLACE]] || Program Management Director 
|-
|}

Which essentially truncates the table at that point.

We are running the below versions

Mediawiki      1.30.0
visualeditor    0.1.0 (61f161a) 14:07, 2 October 2017
parsoid           0.9.0all

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 6 2019, 12:13 PM
Aklapper updated the task description. (Show Details)May 6 2019, 12:23 PM
Aklapper added a project: VisualEditor-Tables.
Restricted Application added a project: VisualEditor. · View Herald TranscriptMay 6 2019, 12:23 PM
marcella added subscribers: matmarex, ssastry, marcella.

@matmarex thinks this is likely to be a Parsoid issue. @ssastry please let us know if your team disagrees.

@matmarex thinks this is likely to be a Parsoid issue. @ssastry please let us know if your team disagrees.

Yes, it looks like a Parsoid issue.

[subbu@earth:~/work/wmf/parsoid] echo -e "{|\n| [[Category:Foo]] [[Category:Bar]]\n|}" | parse.js --wt2wt
{|
|[[Category:Foo]]
[[Category:Bar]]
|}
ssastry renamed this task from Visual editor inserts line break between table tags truncating the table to Parsoid doesn't roundtrip multiple category links in a table cell.May 6 2019, 6:40 PM
ssastry triaged this task as Normal priority.