https://bugzilla.wikimedia.org/show_bug.cgi?id=68618
Bug ID: 68618
Summary: Parsoid: Linebreaks not converted properly
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Web browser: ---
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l