https://bugzilla.wikimedia.org/show_bug.cgi?id=51210
Web browser: ---
Bug ID: 51210
Summary: Parsoid doesn't insert a newline before a
template-generated list
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: serializer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Put the following wikitext on a page:
* Foo<ref>bar</ref>{{echo|1=<h2 style="cursor:help" title="Esta seção não é
editável por razões técnicas. Edite a página toda em vez
disso.">Referências</h2>
<div class="reflist references-small" style=""><references
group=""></references></div>
}}
The DOM produced by this is basically just <ul typeof="mw:Transclusion"><li>
with everything else inside of that li.
Open this page in VE and add some text at the beginning before the list. The
resulting DOM is <p>Baz</p><ul typeof="mw:Transclusion"><li>...</li></ul>
Serialize this back through Parsoid, and the result is:
bar* Foo<ref>bar</ref>{{echo|1=<h2 style="cursor:help" title="Esta seção não é
editável por razões técnicas. Edite a página toda em vez
disso.">Referências</h2>
<div class="reflist references-small" style=""><references
group=""></references></div>
}}
This is wrong, there should be two newlines (or at least one) between 'bar' and
the asterisk starting the list.
--
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