From: Antoine Musso Date: Wed, 13 Jul 2005 21:18:32 +0000 (+0000) Subject: Fix #460 : handle
as a block X-Git-Tag: 1.5.0beta4~141 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=8b1fc67ec47aac9bc58d21bdb33fdd6cd78275b1;p=lhc%2Fweb%2Fwiklou.git Fix #460 : handle
as a block --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b08f27b7c8..3db158b6ec 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -570,6 +570,7 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new. * (bug 2832) [[Special:Listadmins]] redirects to [[Special:Listusers/sysop]] * (bug 785) Parser did not get out of
 with list elements
 * Some shared upload fixes
+* (bug 460) Properly handle 
tags as a block. === Caveats === diff --git a/includes/Parser.php b/includes/Parser.php index b522524d0e..f6849fdc44 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -202,8 +202,7 @@ class Parser '/(.) (?=\\?|:|;|!|\\302\\273)/' => '\\1 \\2', # french spaces, Guillemet-right '/(\\302\\253) /' => '\\1 ', - '/
/i' => '
', - '/<\\/center *>/i' => '
', + '/
(.*)<\\/center *>/i' => '
\\1
', ); $text = preg_replace( array_keys($fixtags), array_values($fixtags), $text );