"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "includes/content/WikiTextStructure.php" between
mediawiki-1.31.1.tar.gz and mediawiki-1.32.0.tar.gz

About: MediaWiki is a wiki engine (the collaborative editing software that runs for e.g. Wikipedia, the free encyclopedia).

WikiTextStructure.php  (mediawiki-1.31.1):WikiTextStructure.php  (mediawiki-1.32.0)
skipping to change at line 164 skipping to change at line 164
] ); ] );
if ( strlen( $text ) == 0 ) { if ( strlen( $text ) == 0 ) {
$this->allText = ""; $this->allText = "";
// empty text - nothing to seek here // empty text - nothing to seek here
return; return;
} }
$opening = null; $opening = null;
$this->openingText = $this->extractHeadingBeforeFirstHeading( $te xt ); $this->openingText = $this->extractHeadingBeforeFirstHeading( $te xt );
// Add extra spacing around break tags so text crammed together l
ike<br>this
// doesn't make one word.
$text = str_replace( '<br', "\n<br", $text );
$formatter = new HtmlFormatter( $text ); $formatter = new HtmlFormatter( $text );
// Strip elements from the page that we never want in the search text. // Strip elements from the page that we never want in the search text.
$formatter->remove( $this->excludedElementSelectors ); $formatter->remove( $this->excludedElementSelectors );
$formatter->filterContent(); $formatter->filterContent();
// Strip elements from the page that are auxiliary text. These w ill still be // Strip elements from the page that are auxiliary text. These w ill still be
// searched but matches will be ranked lower and non-auxiliary ma tches will be // searched but matches will be ranked lower and non-auxiliary ma tches will be
// preferred in highlighting. // preferred in highlighting.
$formatter->remove( $this->auxiliaryElementSelectors ); $formatter->remove( $this->auxiliaryElementSelectors );
 End of changes. 1 change blocks. 
5 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)