Page MenuHomePhabricator

<center> not parsed correctly if several in one line
Closed, DeclinedPublic

Description

Author: timwi

Description:
INPUT:

A<center>B</center>C<center>D</center>E

EXPECTED OUTPUT:

A<div class="center">B</div>C<div class="center">D</div>E

ACTUAL OUTPUT:

A<div class="center">B</center>C<center>D</div>E


Version: unspecified
Severity: normal

Details

Reference
bz10840

Event Timeline

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

fearow00 wrote:

It appears to be replacing only one tag, and that is the first and last instances of the start and end tags - it should do a replace all of <center> with the div tag, and the same for </center>. Should be an easyish fix.

It seems that this bug has been fixed. I pasted the example in the Sandbox and the generated output is:
<p>A</p>
<center>B</center>
<p>C</p>
<center>D</center>
<p>E</p>

All tags are appropriately closed.