Index: trunk/phase3/includes/Parser.php |
— | — | @@ -2123,10 +2123,10 @@ |
2124 | 2124 | wfProfileIn( "$fname-paragraph" ); |
2125 | 2125 | # No prefix (not in list)--go to paragraph mode |
2126 | 2126 | // XXX: use a stack for nestable elements like span, table and div |
2127 | | - $openmatch = preg_match('/(<table|<blockquote|<h1|<h2|<h3|<h4|<h5|<h6|<pre|<tr|<p|<ul|<ol|<li|<\\/center|<\\/tr|<\\/td|<\\/th)/iS', $t ); |
| 2127 | + $openmatch = preg_match('/(<table|<blockquote|<h1|<h2|<h3|<h4|<h5|<h6|<pre|<tr|<p|<ul|<ol|<li|<\\/tr|<\\/td|<\\/th)/iS', $t ); |
2128 | 2128 | $closematch = preg_match( |
2129 | 2129 | '/(<\\/table|<\\/blockquote|<\\/h1|<\\/h2|<\\/h3|<\\/h4|<\\/h5|<\\/h6|'. |
2130 | | - '<td|<th|<div|<\\/div|<hr|<\\/pre|<\\/p|'.$this->mUniqPrefix.'-pre|<\\/li|<\\/ul|<\\/ol|<center)/iS', $t ); |
| 2130 | + '<td|<th|<\\/?div|<hr|<\\/pre|<\\/p|'.$this->mUniqPrefix.'-pre|<\\/li|<\\/ul|<\\/ol|<\\/?center)/iS', $t ); |
2131 | 2131 | if ( $openmatch or $closematch ) { |
2132 | 2132 | $paragraphStack = false; |
2133 | 2133 | # TODO bug 5718: paragraph closed |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -336,6 +336,8 @@ |
337 | 337 | * (bug 8274) Wrap edit tools in a <div> with a specified class |
338 | 338 | * Detect PHP 5.0.x 64-bit bug and abort in WebStart.php; too many things break |
339 | 339 | mysteriously otherwise (detection code copied from install-utils.inc) |
| 340 | +* (bug 8295) Change handling of <center> tags in doBlockLevels() to match that |
| 341 | + of <div> |
340 | 342 | |
341 | 343 | == Languages updated == |
342 | 344 | |