Index: trunk/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php |
— | — | @@ -130,13 +130,16 @@ |
131 | 131 | $css[] = ".source-$lang {line-height: normal;}"; |
132 | 132 | $css[] = ".source-$lang li {line-height: normal;}"; |
133 | 133 | $css[] = $geshi->get_stylesheet( false ); |
| 134 | + $css[] = '/*]]>*/'; |
| 135 | + $css[] = '</style>'; |
134 | 136 | if( $wgUseSiteCss ) { |
135 | 137 | $title = Title::makeTitle( NS_MEDIAWIKI, 'Geshi.css' ); |
136 | 138 | $q = "usemsgcache=yes&action=raw&ctype=text/css&smaxage={$wgSquidMaxage}"; |
| 139 | + $css[] = '<style type="text/css">/*<![CDATA[*/'; |
137 | 140 | $css[] = '@import "' . $title->getLocalUrl( $q ) . '";'; |
| 141 | + $css[] = '/*]]>*/'; |
| 142 | + $css[] = '</style>'; |
138 | 143 | } |
139 | | - $css[] = '/*]]>*/'; |
140 | | - $css[] = '</style>'; |
141 | 144 | return implode( "\n", $css ); |
142 | 145 | } |
143 | 146 | |