Parsoid: Word next to paragraph serializes to single line break inside a table cell
Closed, DeclinedPublic

Description

Bug report from user. Seems like a Parsoid bug; I will investigate.


Version: unspecified
Severity: normal
URL: https://en.wikipedia.org/w/index.php?title=User%3AEdgepedia%2Fsandbox&diff=554838750&oldid=554837906

bzimport added a project: Parsoid.Via ConduitNov 22 2014, 1:35 AM
bzimport set Reference to bz48460.
Jdforrester-WMF created this task.Via LegacyMay 14 2013, 4:48 PM
Jdforrester-WMF added a comment.Via ConduitJun 14 2013, 3:54 AM

No, this appears to be a problem at our end - the changes work fine in Parsoid's RT form. DM issue?

Esanders added a comment.Via ConduitDec 9 2013, 5:02 PM

Foo<p>Bar</p>
->
Foo\n\nBar

Foo<p>Bar</p>

->
{|

Foo\nBar
}
ssastry added a comment.Via ConduitDec 9 2013, 5:10 PM

Output on latest master. See the --html2html output. That does render back to original HTML. Can you clarify what needs fixing?

[subbu@earth tests] echo '<table><tr><td>Foo<p>Bar</p></td></tr></table>' | node parse --html2wt
{|

Foo

Bar

}

[subbu@earth tests] echo '<table><tr><td>Foo<p>Bar</p></td></tr></table>' | node parse --html2html
<body data-parsoid='{"dsr":[0,15,0,0]}'><table data-parsoid='{"dsr":[0,14,2,2]}'>
<tbody data-parsoid='{"dsr":[3,12,0,0]}'><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true,"dsr":[3,11,0,0]}'><td data-parsoid='{"autoInsertedEnd":true,"dsr":[3,11,1,0]}'>Foo
<p data-parsoid='{"dsr":[8,11,0,0]}'>Bar</p></td></tr>
</tbody></table>
</body>

[subbu@earth tests] echo '<table><tr><td>Foo<p>Bar</p></td></tr></table>' | node parse --html2html
[subbu@earth tests] echo '<table><tr><td>\nFoo<p>Bar</p></td></tr></table>' | node parse --html2wt
{|

|

Foo

Bar

}
ssastry added a comment.Via ConduitJul 24 2014, 9:49 PM

Please submit a new bug report if there is anything here that needs fixing.

Add Comment