Update list item newline handling to follow Parsoid's model
commitb33b5d5840fe0c59d776e78755b0c8a5e712a805
authorGabriel Wicke <gwicke@wikimedia.org>
Tue, 20 May 2014 16:14:21 +0000 (20 09:14 -0700)
committerGabriel Wicke <gwicke@wikimedia.org>
Mon, 9 Jun 2014 18:01:52 +0000 (9 11:01 -0700)
treed89b5a9529b13219448ece3aae3557ad94c40ce9
parent6776bc609ff89331d2b02fbca071254b7cf3d814
Update list item newline handling to follow Parsoid's model

This improves on commit 34bd573144883af9ace7ead32d3be8f692431718 by matching
Parsoid's newline handling in the PHP parser. It is the outcome of a
discussion with Erwin, where we agreed that

* foo
* bar

should produce

<ul><li>foo</li>
<li>bar</li></ul>

See the discussion in https://gerrit.wikimedia.org/r/#/c/94443/

The original rendering issue this tried to address is no longer present after
a change to the template. The pure CSS solution is now working.

Bug: 39617
Bug: 56809
Change-Id: Ib7aa9449bbd994cb23b83b3f23cff944b1cddadf
includes/parser/Parser.php
tests/parser/parserTests.txt
tests/phpunit/includes/StatusTest.php