Last modified: 2013-09-04 11:51:32 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 T34243, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32243 - Too little white space between list and section heading
Too little white space between list and section heading
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: design
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-07 19:42 UTC by Chris
Modified: 2013-09-04 11:51 UTC (History)
2 users (show)

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


Attachments
Shows that the amount of white space between a list and a section heading is less than the white space between text and a section heading. (2.40 KB, image/png)
2011-11-07 19:42 UTC, Chris
Details

Description Chris 2011-11-07 19:42:59 UTC
Created attachment 9373 [details]
Shows that the amount of white space between a list and a section heading is less than the white space between text and a section heading.

The amount of white space between regular text and an adjacent section heading is different than the amount of white space between the end of a list and an adjacent section heading. The attachment illustrates what I mean. The upper red section has a height of 22 pixels; the lower red section has a height of 17 pixels. Ideally, every section heading should be preceded by the same amount of white space, regardless of what comes before it.
Comment 1 Chris 2011-11-07 20:03:33 UTC
This problem could be solved by changing the parser to insert <p></p> between the end of a list and the adjacent section heading. I wrote a simple extension that does the following on the rendered HTML:

$text = preg_replace("#(</[ou]l>)(\s*<h[1-6]>)#s", "$1\n<p></p>$2", $text);

Now when I view the page, the height of the upper red area is 23 pixels and the height of the lower red area is 22 pixels. I'm not sure what's causing the difference, but at least it isn't as noticeable.
Comment 2 Daniel Friesen 2011-11-08 17:38:18 UTC
Inserting a blank <p> is really a bad way to fix it, sounds like something that needs updating of css files.

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


Navigation
Links