Last modified: 2014-07-26 15:29:02 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 T70618, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68618 - Parsoid: Linebreaks not converted properly
Parsoid: Linebreaks not converted properly
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Parsoid Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-26 15:29 UTC by Ed Sanders
Modified: 2014-07-26 15:29 UTC (History)
2 users (show)

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


Attachments

Description Ed Sanders 2014-07-26 15:29:02 UTC
Consider the following wikitext:
Zero↵One↵↵Two↵↵↵Three↵↵↵↵Four↵↵↵↵↵Five

(↵ === \n)

This renders the following HTML:

<p>One↵Two</p>

<p>Three</p>

<p><br/>↵Four</p>

<p><br/>↵</p>

<p>Five</p>

Firstly, are the <br/> tags necessary here?

Secondly if you edit this in VE and delete the ↵ character before 'Four' and the br inside the empty paragraph between 'Four' and 'Five', you get an empty diff, despite VE sending the following HTML back:

<p>One↵Two</p>

<p>Three</p>

<p><br/>Four</p>

<p></p>

<p>Five</p>

The gap between 'Four' and 'Five' should be reduced to two linebreaks, and if it weren't for the extra <br/> before 'Four' originally, that would work too.

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


Navigation
Links