https://bugzilla.wikimedia.org/show_bug.cgi?id=38605

       Web browser: ---
             Bug #: 38605
           Summary: Inordinate number of newlines before code
           Product: MediaWiki extensions
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: SyntaxHighlight (GeSHi)
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


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

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to