Last modified: 2014-07-24 21:49:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50460, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48460 - Parsoid: Word next to paragraph serializes to single line break inside a table cell
Parsoid: Word next to paragraph serializes to single line break inside a tabl...
Status: RESOLVED WORKSFORME
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Gabriel Wicke
https://en.wikipedia.org/w/index.php?...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-14 16:48 UTC by James Forrester
Modified: 2014-07-24 21:49 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description James Forrester 2013-05-14 16:48:05 UTC
Bug report from user. Seems like a Parsoid bug; I will investigate.
Comment 1 James Forrester 2013-06-14 03:54:49 UTC
No, this appears to be a problem at our end - the changes work fine in Parsoid's RT form. DM issue?
Comment 2 Ed Sanders 2013-12-09 17:02:00 UTC
Foo<p>Bar</p>
->
Foo\n\nBar

<table><tr><td>
Foo<p>Bar</p>
</td></tr></table>
->
{|
|Foo\nBar
|}
Comment 3 ssastry 2013-12-09 17:10:20 UTC
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
|}
Comment 4 ssastry 2014-07-24 21:49:33 UTC
Please submit a new bug report if there is anything here that needs fixing.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links