Page MenuHomePhabricator

In tables, cell-terminating "||"s without any content after them are not interpreted as creating a new cell
Closed, ResolvedPublic

Description

<<I was editing my userpage with VE today, and I noticed that, in the part of a
table with an empty cell, VE seemed to move the two pipes inside the cell on
the left, and the empty cell didn't show. -- t numbermaniac c 03:02, 6 August
2013 (UTC)>> (first line of the Redirect table in
http://en.wikipedia.org/wiki/User:Numbermaniac?veaction=edit ).


Version: unspecified
Severity: normal
URL: http://parsoid.wmflabs.org/en/User:Jdforrester_(WMF)/Sandbox?oldid=570276725
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=52181

Details

Reference
bz52641

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:59 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz52641.

The problem here is in Parsoid's interpretation of the wikitext; in MW's parser …

| Foo || Bar

… and …

| Foo ||

… both create two cells, but in Parsoid, the "||" currently doesn't make a new cell unless there's some content that follows it, leading to unexpected table structures.

See also http://parsoid.wmflabs.org/en/User:Jdforrester_(WMF)/Sandbox?oldid=570276902

Change 137173 had a related patch set uploaded by Arlolra:
Accept !! in table data

https://gerrit.wikimedia.org/r/137173

Change 137173 merged by jenkins-bot:
Accept !! in table data

https://gerrit.wikimedia.org/r/137173

Fix is merged, and should be deployed next Monday.