From 90f6f421930690fbed800f1835e5cf655507c27b Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 14 Jul 2004 18:46:02 +0000 Subject: [PATCH] improved pre/list interaction, cleanup --- includes/Parser.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 0247134c53..a1e26cfe50 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1261,10 +1261,7 @@ class Parser $lastPrefixLength = strlen( $lastPrefix ); $preCloseMatch = preg_match("/<\\/pre/i", $oLine ); $preOpenMatch = preg_match("/
mInPre) {
-				$this->mInPre = !empty($preOpenMatch);
-			}
-			if ( $preOpenMatch || !$this->mInPre ) {
+			if ( !$this->mInPre ) {
 				# Multiple prefixes may abut each other for nested lists.
 				$prefixLength = strspn( $oLine, '*#:;' );
 				$pref = substr( $oLine, 0, $prefixLength );
@@ -1272,6 +1269,7 @@ class Parser
 				# eh?
 				$pref2 = str_replace( ';', ':', $pref );
 				$t = substr( $oLine, $prefixLength );
+				$this->mInPre = !empty($preOpenMatch);
 			} else {
 				# Don't interpret any other prefixes in preformatted text
 				$prefixLength = 0;
-- 
2.20.1