Last modified: 2012-07-23 21:01:33 UTC
I was just browsing some <syntaxhighlight>ed code on mw.org, and it appears to have some amount of whitespace before and after the code that is, to my knowledge, a new bug. Maybe I'm wrong, and this is a feature, but it seems really obstructive, since it breaks the page up a lot, and especially for one-line snippets, it could be pretty difficult to read a lot of them if there are several lines of whitespace between each one. This bug occurs on all instances of <source> and <syntaxhighlight> on mw.org for me, for example most things on [1]. Likely cause: The CSS rule "white-space: pre-wrap;" in the block for "div.mw-geshi". I cannot find the line number, but a simple grep for the rule name should find it. Thanks for looking into this! [1] https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Method_1:_CSS_file
https://www.mediawiki.org/w/index.php?title=MediaWiki%3ACommon.css&diff=564643&oldid=564053