r14589 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14588‎ | r14589 | r14590 >
Date:08:59, 6 June 2006
Author:brion
Status:old
Tags:
Comment:
And one more little backport, fixing broken extra junk on heading lines
Modified paths:
  • /branches/REL1_6/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: branches/REL1_6/phase3/includes/Parser.php
@@ -874,7 +874,7 @@
875875 wfProfileIn( $fname );
876876 for ( $i = 6; $i >= 1; --$i ) {
877877 $h = str_repeat( '=', $i );
878 - $text = preg_replace( "/^{$h}(.+){$h}(\\s|$)/m",
 878+ $text = preg_replace( "/^{$h}(.+){$h}\\s*$/m",
879879 "<h{$i}>\\1</h{$i}>\\2", $text );
880880 }
881881 wfProfileOut( $fname );

Status & tagging log