(bug 2857) fixed parsing of lists in <pre> sections
authorJens Frank <jeluf@users.mediawiki.org>
Fri, 22 Jul 2005 22:14:05 +0000 (22:14 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Fri, 22 Jul 2005 22:14:05 +0000 (22:14 +0000)
RELEASE-NOTES
includes/Parser.php

index 088ca9e..13a9cc9 100644 (file)
@@ -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 <center> 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 <pre> sections
 
 
 === Caveats ===
index d851eb4..e4746a9 100644 (file)
@@ -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 {