From ad9c9e63644c9a0939c2755424664d99b93d7dee Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Fri, 16 Apr 2004 14:28:03 +0000 Subject: [PATCH] \n in " instead of ' --- includes/Parser.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 3dcc7a53e5..a7347c8498 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -265,7 +265,7 @@ class Parser $ti = $this->mTitle->getText() ; $ti = explode ( ":" , $ti , 2 ) ; if ( $cat != $ti[0] ) return "" ; - $r = '
\n'; + $r = "
\n"; $articles = array() ; $parents = array () ; @@ -1026,19 +1026,18 @@ class Parser if ( ! $linestart ) { $text .= array_shift( $a ); } foreach ( $a as $t ) { $oLine = $t; + $opl = strlen( $lastPref ); $preCloseMatch = preg_match("/<\\/pre/i", $t ); $preOpenMatch = preg_match("/
mInPre) {
 				$this->mInPre = !empty($preOpenMatch);
 			}
 			if ( !$this->mInPre ) {
-				$opl = strlen( $lastPref );
 				$npl = strspn( $t, "*#:;" );
 				$pref = substr( $t, 0, $npl );
 				$pref2 = str_replace( ";", ":", $pref );
 				$t = substr( $t, $npl );
 			} else {
-				$opl = strlen( $lastPref );
 				$npl = 0;
 				$pref = $pref2 = '';
 			}
-- 
2.20.1