Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | array_push( $this->mKeywords, $text ); |
95 | 95 | } |
96 | 96 | } |
97 | | - function addScript( $script ) { $this->mScripts .= "\t\t".$script; } |
| 97 | + function addScript( $script ) { $this->mScripts .= "\t\t" . $script . "\n"; } |
98 | 98 | |
99 | 99 | function addExtensionStyle( $url ) { |
100 | 100 | $linkarr = array( 'rel' => 'stylesheet', 'href' => $url, 'type' => 'text/css' ); |
— | — | @@ -128,7 +128,7 @@ |
129 | 129 | */ |
130 | 130 | function addInlineScript( $script ) { |
131 | 131 | global $wgJsMimeType; |
132 | | - $this->mScripts .= "<script type=\"$wgJsMimeType\">/*<![CDATA[*/\n$script\n/*]]>*/</script>"; |
| 132 | + $this->mScripts .= "\t\t<script type=\"$wgJsMimeType\">/*<![CDATA[*/\n\t\t$script\n\t\t/*]]>*/</script>\n"; |
133 | 133 | } |
134 | 134 | |
135 | 135 | function getScript() { |