Page MenuHomePhabricator

} in a table cell corrupts the table
Closed, ResolvedPublic

Description

If I create a table and fill in a } in one cell, the resulting wiki code is |}. That should be |<nowiki>}</nowiki>

Event Timeline

Esanders renamed this task from } in a table cell corrupt the table to } in a table cell corrupts the table.Sep 19 2018, 7:56 PM
Esanders removed a project: VisualEditor.
Esanders added a subscriber: Esanders.

Yep - this is Parsoid only. <table><tr><td>}</td></tr></table> does not round-trip.

ssastry triaged this task as Medium priority.Sep 20 2018, 4:34 PM
ssastry edited projects, added Parsoid-Edit-Support; removed Parsoid.
ssastry claimed this task.
ssastry added a subscriber: ssastry.

This has been fixed since. See test edit on mw.org.
Also, this command-line session:

[subbu@earth:~/work/wmf/parsoid] echo '<table><tr><td>}</td></tr></table>' | php bin/parse.php --html2wt
{|
|<nowiki>}</nowiki>
|}