Avoid using CSS for semantic information like directionality.

This commit is contained in:
Aryeh Gregor 2007-07-18 21:43:54 +00:00
parent 50a18bcaaf
commit 1b487ec637

View file

@ -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 {
}
}
}
}