Last modified: 2013-12-03 23:01:50 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 T53210, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51210 - Parsoid doesn't insert a newline before a template-generated list
Parsoid doesn't insert a newline before a template-generated list
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
serializer (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-12 00:21 UTC by Roan Kattouw
Modified: 2013-12-03 23:01 UTC (History)
2 users (show)

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


Attachments

Description Roan Kattouw 2013-07-12 00:21:22 UTC
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.
Comment 1 Gabriel Wicke 2013-12-03 23:01:50 UTC
Seems to be fixed when testing on https://www.mediawiki.org/wiki/User:GWicke/Test/Bug51210?veaction=edit

Please reopen if this is still an issue.

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


Navigation
Links