From 9feaa3422a0a588aa319ce1ae3b1ee57eb1cbc02 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 2 Jun 2004 01:22:29 +0000 Subject: [PATCH] sig fix II --- includes/Parser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 016b0d8a7b..b59bb61707 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);
@@ -1034,7 +1034,7 @@ class Parser
 			}
 			if ( 
 				!$this->mInPre && (!$this->mInNowiki || 
-				$nowikiOpenMatch && !empty($nowikiOpenMatches[2]) && strlen($nowikiOpenMatches[2]) > 0 ) 
+				($nowikiOpenMatch && strlen($nowikiOpenMatches[1]) > 0) ) 
 			) 
 			{
 				# Multiple prefixes may abut each other for nested lists.
@@ -1155,8 +1155,8 @@ class Parser
 						}
 					}
 				}
-				if($nowikiCloseMatch) $this->mInNowiki = false;
 			}
+			if($nowikiCloseMatch) $this->mInNowiki = false;
 			if ($paragraphStack === false) {
 				$output .= $t."\n";
 			}
-- 
2.20.1