Last modified: 2011-02-06 05:29:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12840, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10840 - <center> not parsed correctly if several in one line
<center> not parsed correctly if several in one line
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-07 18:57 UTC by Timwi
Modified: 2011-02-06 05:29 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Timwi 2007-08-07 18:57:45 UTC
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
Comment 1 Matt 2007-08-08 04:26:23 UTC
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.
Comment 2 Diederik van Liere 2011-02-06 05:29:23 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links