From 7325234d67e8c6d1759186d6aff92dee74910e82 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Sun, 17 Dec 2006 16:51:01 +0000 Subject: [PATCH] Change the regexen in doBlockLevels() to handle
tags the same as
. This fixes bug 8293: Use of center tag ruins paragraph formatting, but COULD SOMEONE PLEASE EXPLAIN TO ME WHY??!? Trying to make sense of that code gives me a headache. (Ps. See also related change in r14690.) --- RELEASE-NOTES | 2 ++ includes/Parser.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1c63875b31..83400e3aa1 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -336,6 +336,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 8274) Wrap edit tools in a
with a specified class * Detect PHP 5.0.x 64-bit bug and abort in WebStart.php; too many things break mysteriously otherwise (detection code copied from install-utils.inc) +* (bug 8295) Change handling of
tags in doBlockLevels() to match that + of
== Languages updated == diff --git a/includes/Parser.php b/includes/Parser.php index 7e594f1bbe..9a0331da9e 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2123,10 +2123,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|mUniqPrefix.'-pre|<\\/li|<\\/ul|<\\/ol|<\\/?center)/iS', $t ); if ( $openmatch or $closematch ) { $paragraphStack = false; # TODO bug 5718: paragraph closed -- 2.20.1