From c5686b5b32200f1b1ed5bb76aafa95169ae99566 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 16 Aug 2004 15:29:17 +0000 Subject: [PATCH] more double to single quotes --- includes/Parser.php | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 4da01d45e4..aeed58cc24 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -452,8 +452,6 @@ class Parser return $r ; } - - function newCategoryMagic () { global $wgLang; if ( !$this->mOptions->getUseCategoryMagic() ) return ; # Doesn't use categories at all @@ -843,8 +841,7 @@ class Parser # Parses the text and adds the result to the strip state # Returns the strip tag - function stripParse( $text, $newline, $args ) - { + function stripParse( $text, $newline, $args ) { $text = $this->strip( $text, $this->mStripState ); $text = $this->internalParse( $text, (bool)$newline, $args, false ); return $newline.$this->insertStripItem( $text, $this->mStripState ); @@ -1082,11 +1079,11 @@ class Parser } # Now close all remaining tags. Notice that the order is important. if ($state == 'strong' || $state == 'emstrong') - $output .= ""; + $output .= ''; if ($state == 'em' || $state == 'strongem' || $state == 'emstrong') - $output .= ""; + $output .= ''; if ($state == 'strongem') - $output .= ""; + $output .= ''; if ($state == 'both') $output .= "{$buffer}"; return $output; @@ -1436,7 +1433,7 @@ class Parser /* private */ function nextItem( $char ) { if ( '*' == $char || '#' == $char ) { return '
  • '; } else if ( ':' == $char || ';' == $char ) { - $close = ""; + $close = ''; if ( $this->mDTopen ) { $close = ''; } if ( ';' == $char ) { $this->mDTopen = true; @@ -1484,8 +1481,8 @@ class Parser } foreach ( $textLines as $oLine ) { $lastPrefixLength = strlen( $lastPrefix ); - $preCloseMatch = preg_match("/<\\/pre/i", $oLine ); - $preOpenMatch = preg_match("/
    mInPre ) {
     				# Multiple prefixes may abut each other for nested lists.
     				$prefixLength = strspn( $oLine, '*#:;' );
    @@ -1508,7 +1505,7 @@ class Parser
     				$output .= $this->nextItem( substr( $pref, -1 ) );
     				$paragraphStack = false;
     
    -				if ( ";" == substr( $pref, -1 ) ) {
    +				if ( substr( $pref, -1 ) == ';') {
     					# The one nasty exception: definition lists work like this:
     					# ; title : definition text
     					# So we check for : in the remainder text to split up the
    -- 
    2.20.1