mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 10:39:53 +00:00
Avoid using CSS for semantic information like directionality.
This commit is contained in:
parent
50a18bcaaf
commit
1b487ec637
|
@ -64,7 +64,7 @@ class SyntaxHighlight_GeSHi {
|
|||
$out = str_replace( "\n", '', $out );
|
||||
// Register CSS
|
||||
$parser->mOutput->addHeadItem( self::buildHeadItem( $geshi ), "source-{$lang}" );
|
||||
return $out;
|
||||
return '<div dir="ltr">'.$out.'</div>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ class SyntaxHighlight_GeSHi {
|
|||
global $wgUseSiteCss, $wgSquidMaxage;
|
||||
$lang = $geshi->language;
|
||||
$css[] = '<style type="text/css">/*<![CDATA[*/';
|
||||
$css[] = ".source-$lang {direction: ltr; line-height: normal;}";
|
||||
$css[] = ".source-$lang {line-height: normal;}";
|
||||
$css[] = ".source-$lang li {line-height: normal;}";
|
||||
$css[] = $geshi->get_stylesheet( false );
|
||||
$css[] = '/*]]>*/';
|
||||
|
@ -210,4 +210,4 @@ class SyntaxHighlight_GeSHi {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue