Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | } |
100 | 100 | } |
101 | 101 | function addScript( $script ) { |
102 | | - $this->mScripts .= "\t\t" . $script . "\n"; |
| 102 | + $this->mScripts .= $script . "\n"; |
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
— | — | @@ -275,7 +275,7 @@ |
276 | 276 | * @param string $script JavaScript text, no <script> tags |
277 | 277 | */ |
278 | 278 | function addInlineScript( $script ) { |
279 | | - $this->mScripts .= "\t\t" . Html::inlineScript( "\n\t\t$script\n\t\t" ) . "\n"; |
| 279 | + $this->mScripts .= Html::inlineScript( "\n$script\n" ) . "\n"; |
280 | 280 | } |
281 | 281 | |
282 | 282 | function getScript() { |
— | — | @@ -1703,7 +1703,8 @@ |
1704 | 1704 | $ret .= "xml:lang=\"$wgContLanguageCode\" lang=\"$wgContLanguageCode\" dir=\"$dir\">\n"; |
1705 | 1705 | } |
1706 | 1706 | |
1707 | | - $ret .= "<head>\n\t<title>" . htmlspecialchars( $this->getHTMLTitle() ) . "</title>\n\t"; |
| 1707 | + $ret .= "<head>\n"; |
| 1708 | + $ret .= "<title>" . htmlspecialchars( $this->getHTMLTitle() ) . "</title>\n"; |
1708 | 1709 | $ret .= implode( "\n", array( |
1709 | 1710 | $this->getHeadLinks(), |
1710 | 1711 | $this->buildCssLinks(), |
— | — | @@ -1824,7 +1825,7 @@ |
1825 | 1826 | } |
1826 | 1827 | } |
1827 | 1828 | |
1828 | | - return implode( "\n\t", $tags ) . "\n"; |
| 1829 | + return implode( "\n", $tags ) . "\n"; |
1829 | 1830 | } |
1830 | 1831 | |
1831 | 1832 | /** |
— | — | @@ -1901,7 +1902,7 @@ |
1902 | 1903 | $links[] = $link; |
1903 | 1904 | } |
1904 | 1905 | |
1905 | | - return "\t" . implode( "\n\t", $links ); |
| 1906 | + return implode( "\n", $links ); |
1906 | 1907 | } |
1907 | 1908 | |
1908 | 1909 | protected function styleLink( $style, $options ) { |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -488,7 +488,7 @@ |
489 | 489 | 'action=raw&ctype='.$wgJsMimeType ); |
490 | 490 | $wgOut->addScriptFile( $userjs ); |
491 | 491 | } |
492 | | - return "\t" . $vars . "\t" . $out->mScripts; |
| 492 | + return $vars . "\n" . $out->mScripts; |
493 | 493 | } |
494 | 494 | |
495 | 495 | /** |
— | — | @@ -980,7 +980,7 @@ |
981 | 981 | * @return String HTML-wrapped JS code to be put before </body> |
982 | 982 | */ |
983 | 983 | function bottomScripts() { |
984 | | - $bottomScriptText = "\n\t\t" . Html::inlineScript( 'if (window.runOnloadHook) runOnloadHook();' ) . "\n"; |
| 984 | + $bottomScriptText = "\n" . Html::inlineScript( 'if (window.runOnloadHook) runOnloadHook();' ) . "\n"; |
985 | 985 | wfRunHooks( 'SkinAfterBottomScripts', array( $this, &$bottomScriptText ) ); |
986 | 986 | return $bottomScriptText; |
987 | 987 | } |