From 8b1fc67ec47aac9bc58d21bdb33fdd6cd78275b1 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 13 Jul 2005 21:18:32 +0000 Subject: [PATCH] Fix #460 : handle
as a block --- RELEASE-NOTES | 1 + includes/Parser.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1