From cd7963fca7981c52b6bc86c848494d6610a1c27b Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Fri, 22 Jul 2005 22:14:05 +0000 Subject: [PATCH] (bug 2857) fixed parsing of lists in
 sections

---
 RELEASE-NOTES       | 3 +--
 includes/Parser.php | 3 +++
 2 files changed, 4 insertions(+), 2 deletions(-)

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 {
-- 
2.20.1