Last modified: 2014-02-14 14:30:49 UTC
Created attachment 14249 [details] In the read mode Steps to reproduce: 1.Open a page with VE 2.Add a reference to a text by going to Insert>Reference 3.When the reference dialog box opens up insert a numbered list and then type the reference for example as: 1.reference 4.Click on "Insert Reference" 5.Save the page Observed Result: In the read mode,the serials of the numbered list are appearing in wikitext with #. See the screenshot attached Test Environment: http://en.wikipedia.beta.wmflabs.org/ Browser: Chrome Version 26.0.1410.65 OS: MAC OS X 10. 8. 5 Page:http://en.wikipedia.beta.wmflabs.org/w/index.php?title=Jan7th
Created attachment 14250 [details] In Edit mode
This issue is also occurring for bullet list thats is added inside Reference dialog bix, they appear as * in the Read mode
One really shouldn't put lists inside a reference. References are supposed to be a single paragraph. I'll remove the tools for doing so which should reduce the impact of this.
https://gerrit.wikimedia.org/r/#/c/111507/
Todo: create a ticket for the Parsoid side if this bug (not inserting line breaks before */#)
(In reply to Ed Sanders from comment #5) > Todo: create a ticket for the Parsoid side if this bug (not inserting line > breaks before */#) Ed, what's the specific problem Parsoid's doing wrong? <p>Hey!<span class="reference" data-mw="{"name":"ref","body":{"html":"<ul ><li > foo</li><li > bar</li><li > baz</li></ul>"},"attrs":{}}" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p> … goes neatly to … Hey!<ref>* foo * bar * baz</ref> With \n as needed.
The PHP parser requires a \n before every *, including the first one. So it should be: Hey!<ref> * foo * ... Unless you want to start messing with the PHP parser...