Please see the history of this page. You can discover that the lines are all broken, can we put <br/> instead of 1 empty line in VE for to break a line forcefully.
Description
Description
Related Objects
Related Objects
- Mentioned In
- T150213: Unknown contentmodels
T151570: Create Wikivoyage Finnish
T150112: Internal links pointing to interwikis are not encoded at all
T94949: Interwiki links to other MediaWiki wikis in the same cluster don't encode section fragment
T102209: Derive heading ids from heading name, the same way MW core does
T110910: Implement <gallery> extension natively inside Parsoid
T151911: Incorrect parse of table cell
T149428: Inserting image into table in VisualEditor creates a line break in the table wikicode - Mentioned Here
- rGPAR3cf19c6be98b: Place typeof="mw:Image" on gallery image span wrappers
T94949: Interwiki links to other MediaWiki wikis in the same cluster don't encode section fragment
T102209: Derive heading ids from heading name, the same way MW core does
T110910: Implement <gallery> extension natively inside Parsoid
T150112: Internal links pointing to interwikis are not encoded at all
T150213: Unknown contentmodels
T151570: Create Wikivoyage Finnish
T149428: Inserting image into table in VisualEditor creates a line break in the table wikicode
Event Timeline
Comment Actions
Possibly we're doing something odd in VE too, but this serialisation is always going to be wrong.
Comment Actions
The base serialization code definitely needs a fix to deal with embedded newlines.
[subbu@earth parsoid] cat /tmp/html <table> <tbody> <tr><td>a b </td><td data-parsoid='{"stx_v":"row"}' align='right'>c</td></tr> </tbody> </table> [subbu@earth parsoid] parse.js --html2wt < /tmp/html {| |a b || align="right" |c |}
Comment Actions
Another example to demonstrate bad serialization (from T149428#2790836)
[subbu@earth ~] cat /tmp/boo [subbu@earth ~] cat /tmp/boo <table><tbody> <td><p>foo</p></td><td data-parsoid='{"stx_v":"row"}'>boo</td> </tbody></table> [subbu@earth ~] parse.js --html2wt < /tmp/boo {| |foo ||boo |}
Comment Actions
Change 322955 had a related patch set uploaded (by Subramanya Sastry):
WIP: T149209: Deal with newlines in <td> cells
Comment Actions
Change 322955 merged by jenkins-bot:
T149209: Deal with newlines in <td> and <th> cells
Comment Actions
This code has been merged and rt-tested. This will be live on the next deploy (probably next week).