Index: branches/REL1_6/phase3/includes/Parser.php |
— | — | @@ -874,7 +874,7 @@ |
875 | 875 | wfProfileIn( $fname ); |
876 | 876 | for ( $i = 6; $i >= 1; --$i ) { |
877 | 877 | $h = str_repeat( '=', $i ); |
878 | | - $text = preg_replace( "/^{$h}(.+){$h}(\\s|$)/m", |
| 878 | + $text = preg_replace( "/^{$h}(.+){$h}\\s*$/m", |
879 | 879 | "<h{$i}>\\1</h{$i}>\\2", $text ); |
880 | 880 | } |
881 | 881 | wfProfileOut( $fname ); |