Last modified: 2013-09-04 11:51:32 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.
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.
Inserting a blank <p> is really a bad way to fix it, sounds like something that needs updating of css files.