From 3487221d368f8cefd57df8041ad14a18c23d80db Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 9 Jun 2006 21:59:26 +0000 Subject: [PATCH] * Fix regression(?) in behavior of initial-whitespace-pre in
--- RELEASE-NOTES | 1 + includes/Parser.php | 4 ++-- maintenance/parserTests.txt | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index fa0058d9f5..fac93fbe53 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -469,6 +469,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 6254) Update to Indonesian translation (id) #20 * (bug 6255) Fix transclusions starting with "#" or "*" in HTML attributes * Whitespace now normalized more or less properly in HTML attributes +* Fix regression(?) in behavior of initial-whitespace-pre in
== Compatibility == diff --git a/includes/Parser.php b/includes/Parser.php index db6e2733cc..60aaaedc8a 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1891,10 +1891,10 @@ class Parser wfProfileIn( "$fname-paragraph" ); # No prefix (not in list)--go to paragraph mode // XXX: use a stack for nestable elements like span, table and div - $openmatch = preg_match('/(mUniqPrefix.'-pre|<\\/li|<\\/ul|<\\/ol|<\\/center)/iS', $t ); + 'mUniqPrefix.'-pre|<\\/li|<\\/ul|<\\/ol|link !! end +!! test +Regression with preformatted in
+!! input +
+ Blah +
+!! result +
+
Blah
+
+
+ +!! end + !! test
 with attributes (bug 3202)
 !! input
-- 
2.20.1