Newlines in list items are treated no different than normal newlines. This results in
<ul>
<li>Item 1
<li>Item 2
</ul>
- Item 1
- Item 2
not being the same as
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
- Item 1
- Item 2
The first second results in extraneous space between the list elements, the first one doesn’t. Both contain unnecessary <br>
s though, although in the first case they are ignored by the browser.
I get that this is a useful feature outside lists, but it’s not what the user expects inside of lists, a new list item automatically gets a new line – no need to generate <br>
in either of the above cases.