Last modified: 2012-07-23 21:01:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40605, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38605 - Inordinate number of newlines before code
Inordinate number of newlines before code
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SyntaxHighlight (GeSHi) (Other open bugs)
master
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-23 18:00 UTC by Mark Holmquist
Modified: 2012-07-23 21:01 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark Holmquist 2012-07-23 18:00:28 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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links