From cdd0bae0abe706e892c79bbbd888ddabc6f65185 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Wed, 2 Jun 2004 05:54:52 +0000 Subject: [PATCH] workaround, strip nowikis again in doBlockLevels. BUG #96447 --- includes/Parser.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 41159cf492..2bb28ede33 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -214,12 +214,12 @@ class Parser $text = Parser::extractTags("nowiki", $text, $nowiki_content, $uniq_prefix); foreach( $nowiki_content as $marker => $content ){ - if( $render ){ - # use span to mark nowiki areas, note the trailing whitespace in span to avoid collisions with other spans - $nowiki_content[$marker] = ''.wfEscapeHTMLTagsOnly( $content ).""; - } else { + //if( $render ){ + //# use span to mark nowiki areas, note the trailing whitespace in span to avoid collisions with other spans + //$nowiki_content[$marker] = ''.wfEscapeHTMLTagsOnly( $content ).""; + //} else { $nowiki_content[$marker] = "$content"; - } + //} } $text = Parser::extractTags("hiero", $text, $hiero_content, $uniq_prefix); @@ -1010,6 +1010,9 @@ class Parser # happening here is handling of block-level elements p, pre, # and making lists from lines starting with * # : etc. # + + // Strip nowiki's again. + $text = $this->strip($text,$dblStripState); $textLines = explode( "\n", $text ); $lastPrefix = $output = $lastLine = ''; @@ -1170,6 +1173,7 @@ class Parser $output .= "mLastSection . ">"; $this->mLastSection = ""; } + $output = $this->unstrip( $output, $dblStripState ); wfProfileOut( $fname ); return $output; -- 2.20.1