Introducing broken changes in commits meant to fix broken changes is vaguely ironic.
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 4 Mar 2007 16:11:25 +0000 (16:11 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 4 Mar 2007 16:11:25 +0000 (16:11 +0000)
includes/Parser.php

index 26e532c..14d45bd 100644 (file)
@@ -4562,7 +4562,7 @@ class Parser
                                .+?  # Section title...
                                \\2  # Ending = count must match start
                                (?:$comment|<\/?noinclude>|[ \\t]+)* # Trailing whitespace ok
-                               \n?
+                               $
                        |
                                <h([1-6])\b.*?>
                                .*?
@@ -4721,7 +4721,7 @@ class OnlyIncludeReplacer {
                if ( substr( $matches[1], -1 ) == "\n" ) {
                        $this->output .= substr( $matches[1], 0, -1 );
                } else {
-                       $this->output .= $matche        s[1];
+                       $this->output .= $matches[1];
                }
        }
 }