Page MenuHomePhabricator

preformatted text within list
Closed, ResolvedPublic

Description

Author: nailor

Description:
*<pre>foo
bar</pre>

This code causes only "foo" to be rendered as preformatted text whereas expected result is a box (containing "foo" and "bar") with preformatted text as a list item.

<pre>foo
bar</pre>

Causes the list-item-rectangle to be placed within the textbox and looks strange, too.


Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=132400597

Details

Reference
bz9989

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:39 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz9989.
bzimport added a subscriber: Unknown Object (MLST).

Concur with your first (I've linked to a sandbox entry to demonstrate). I think this is another of those places where block containers play silly games. If you use explicit HTMl it comes out as per your "expected".

Not certain what the second is about: the result I can see makes it look as if the list is completely ignored…but then an empty list is usually ignored, so what's the difference here?

ayg wrote:

*** This bug has been marked as a duplicate of bug 1581 ***