From: Jens Frank Date: Fri, 22 Jul 2005 22:14:05 +0000 (+0000) Subject: (bug 2857) fixed parsing of lists in
 sections
X-Git-Tag: 1.5.0beta4~60
X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=cd7963fca7981c52b6bc86c848494d6610a1c27b;p=lhc%2Fweb%2Fwiklou.git

(bug 2857) fixed parsing of lists in 
 sections
---

diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index 088ca9e270..13a9cc9df7 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -574,10 +574,8 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new.
 * show comment subject in preview when using section=new
 * use comment form when creating a new talk page
 * (bug 460) Properly handle 
tags as a block. -* (bug 2001) Implement client-side sorting of table fields with JavaScript * Undo inconsistent editing behavior change * (bug 2835) Back out fix for bug 2802, caused regressions in category sort -* (bug 2866) Revert experimental, non-cross-platform sortable table hack * PHP 4.1.2 compatibility fix: define floatval() equivalent if missing * (bug 2901) Number format for Catalan * Special:Allpages performance hacks: index memcached caching, removed @@ -595,6 +593,7 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new. their own logtypes, see extensions/Renameuser/SpecialRenameuser.php for an example of this. * (bug 740) Messages from extensions now appear in Special:Allmessages +* (bug 2857) fixed parsing of lists in
 sections
 
 
 === Caveats ===
diff --git a/includes/Parser.php b/includes/Parser.php
index d851eb46d7..e4746a95b3 100644
--- a/includes/Parser.php
+++ b/includes/Parser.php
@@ -1752,6 +1752,9 @@ class Parser
 				if ( $openmatch or $closematch ) {
 					$paragraphStack = false;
 					$output .= $this->closeParagraph();
+					if ( $preOpenMatch and !$preCloseMatch ) {
+						$this->mInPre = true;
+					}
 					if ( $closematch ) {
 						$inBlockElem = false;
 					} else {