Consistent Margins for List Items
All of the distributed Moin themes have the following CSS statement near the top of common.css.
li p { margin: .25em 0; }
The effect of the above is to increase the top and bottom margins for those list elements that have a p element in them (due to a bug in the parser/formatter, these are the ones with words formatted with italic, bold, etc). As a result, lists that have a few entries with emphasized text appear with malformed line spacing:
- a normal line of text
- another normal line of text
- a normal line of text
- another normal line of text
a line with a word in italic
- a normal line of text
- another normal line of text
- a normal line of text
- another normal line of text
a line with a word in bold
- a normal line of text
- another normal line of text
superscript2 -- uses other CSS rules for top margin
- a normal line of text
- another normal line of text
a suppressed wiki name hyperlink WikiName
- a normal line of text
- another normal line of text
a line with emphasized text
- a normal line of text
- another normal line of text
subscript2 -- uses other CSS rules for bottom margin
- a normal line of text
- another normal line of text
The inconsistent formatting should be eliminated by removing the CSS statement above.
For my browser and the "modernized" theme here, this doesn't work. What works mostly is to use "li p {margin: 0;}", except for the superscript/subscript case, which seems to add another margin.