Page MenuHomePhabricator

List context corrupted when encountering a PRE block.
Closed, DuplicatePublic

Description

Place the following code sequence into Special:ExpandTemplates dialog.

: List 1
: <pre>
Items 1
Item  2
</pre>
: List 2

Expected output:

<dl><dd>List 1</dd>
<dd><pre>
Items 1
Item  2
</pre></dd>
<dd>List 2</dd></dl>

Actual output:

<dl><dd>List 1</dd>
<dd><pre></pre></dd></dl><p>
Items 1
Item  2

</p><dl><dd>List 2</dd></dl>