Page MenuHomePhabricator

"[[Link]]<br>Word" should not be automatically changed to "[[Link]]<nowiki/>Word"
Closed, DuplicatePublic0 Estimated 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).

Event Timeline

Whatamidoing-WMF raised the priority of this task from to Medium.
Whatamidoing-WMF updated the task description. (Show Details)

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.

Screen Shot 2015-11-03 at 11.33.00 AM.png (325×364 px, 42 KB)

LGoto lowered the priority of this task from Medium to Low.Mar 6 2020, 5:19 PM
LGoto moved this task from Link syntax (links & media) to Bugs & Crashers on the Parsoid board.