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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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