"[[Link]]<br>Word" should not be automatically changed to "[[Link]]<nowiki/>Word"
Open, NormalPublic0 Story Points

Description

See the diff.

Phabricator doesn't seem to be able to produce a table cell with two paragraphs in it, so this what the wikitext should have looked like (and what was wanted) in the table cell:

|-
| Other cell
| [[Link]]
New paragraph
|-

But when it saved, the result was

|-
| Other cell
| [[Link]]<nowiki/>New paragraph
|-

which renders differently (and screws up the column widths).

Whatamidoing-WMF updated the task description. (Show Details)
Whatamidoing-WMF raised the priority of this task from to Normal.
Whatamidoing-WMF added a subscriber: Whatamidoing-WMF.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 3 2015, 3:42 PM
ssastry added a subscriber: ssastry.Nov 3 2015, 5:04 PM

Can you give me a bit more info about what exactly you did in VE to get this output? Because Parsoid preserves the <br/> or linebreak. See below.

[subbu@earth wt2html] echo "<table><tr><td><a href='./Foo' rel='mw:WikiLink'>Foo</a><br/>bar</td></tr></table>" | parse.js --html2wt
{|
|[[Foo]]<br>
bar
|}
[subbu@earth wt2html] echo "<table><tr><td><a href='./Foo' rel='mw:WikiLink'>Foo</a>\nbar</td></tr></table>" | parse.js --html2wt
{|
|[[Foo]]
bar
|}

I pasted a line into the cell. I deleted a word (and the spaces on either side of it) and pressed the Return key to make the two items be on separate lines. I added a link to the first word.

I did exactly the same thing (copy, paste, delete the word and, and add a line break) in the adjacent cells, only there were no pages to link to. Those cells worked fine. Therefore, the problem is the link.

https://en.wikipedia.org/w/index.php?title=User:Whatamidoing_(WMF)/sandbox&diff=688905407&oldid=688905102 shows reproduction in Safari 9.0. Compare the wikitext result with what's shown in the image (taken immediately before saving).

Removing the space matters. I removed the spaces between the words (when adding the line breaks) in the first row, and I carefully preserved the space at the end of each word in the second row of the table. The wikitext does not match the displayed result in either case, but they are broken in different ways.

ssastry moved this task from Backlog to Links on the Parsoid board.Sep 18 2017, 5:23 PM
Restricted Application added a subscriber: jeblad. · View Herald TranscriptSep 18 2017, 5:23 PM