From 10fa17d61b68a6017285d9f0cae7386fd14d1271 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 2 Jun 2004 00:39:02 +0000 Subject: [PATCH] bug fix: list item with nowiki --- includes/Parser.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 1b1a4b2588..016b0d8a7b 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1024,7 +1024,7 @@ class Parser $lastPrefixLength = strlen( $lastPrefix ); $preOpenMatch = preg_match("/
/", $oLine );
 			if (!$this->mInPre) {
 				$this->mInPre = !empty($preOpenMatch);
@@ -1032,7 +1032,11 @@ class Parser
 			if (!$this->mInNowiki) {
 				$this->mInNowiki = !empty($nowikiOpenMatch);
 			}
-			if ( !$this->mInPre && !$this->mInNowiki ) {
+			if ( 
+				!$this->mInPre && (!$this->mInNowiki || 
+				$nowikiOpenMatch && !empty($nowikiOpenMatches[2]) && strlen($nowikiOpenMatches[2]) > 0 ) 
+			) 
+			{
 				# Multiple prefixes may abut each other for nested lists.
 				$prefixLength = strspn( $oLine, "*#:;" );
 				$pref = substr( $oLine, 0, $prefixLength );
-- 
2.20.1