Added a class to the wrapper to allow site CSS to re-add the dashed borders on wikis that want them.

This commit is contained in:
Tim Starling 2009-06-24 05:39:23 +00:00
parent ae726406e2
commit b424069389

View file

@ -86,9 +86,9 @@ class SyntaxHighlight_GeSHi {
// Register CSS // Register CSS
$parser->mOutput->addHeadItem( self::buildHeadItem( $geshi ), "source-{$lang}" ); $parser->mOutput->addHeadItem( self::buildHeadItem( $geshi ), "source-{$lang}" );
if ( $enclose === GESHI_HEADER_NONE ) { if ( $enclose === GESHI_HEADER_NONE ) {
$out = '<span class="'.$lang.' source-'.$lang.'"> '.$out . '</span>'; $out = '<span class="mw-geshi '.$lang.' source-'.$lang.'"> '.$out . '</span>';
} else { } else {
$out = '<div dir="ltr" style="text-align: left;">' . $out . '</div>'; $out = '<div dir="ltr" class="mw-geshi" style="text-align: left;">' . $out . '</div>';
} }
wfProfileOut( __METHOD__ ); wfProfileOut( __METHOD__ );
return $out; return $out;