https://bugzilla.wikimedia.org/show_bug.cgi?id=68800
Bug ID: 68800
Summary: Parsoid list with newlines roundtrip issue: HTML
"<ul><li>asd\nsdf</li></ul>" → Wikitext "* asd\nsdf" →
HTML "<ul><li>asd</li></ul><p>sdf</p>"
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: ---
Take this HTML:
<ul><li>asd
sdf</li></ul>
Parse to wikitext:
* asd
sdf
Parse back to HTML:
<ul><li>asd</li></ul>
<p>sdf</p>
I'm not sure what should happen here, but definitely not this.
It's rather easy to run into this in VisualEditor – take a paragraph with
newlines and convert it to a list item. I ran into it making this edit:
https://en.wikipedia.org/w/index.php?title=Polish_nationality_law&diff=prev&oldid=618961884
(I manually replaced the newlines with spaces before saving).
--
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