[#1414 CSS pre-line style for "pre" is wrong]
[email protected] (betabug)
| Newsgroups | gmane.comp.web.zope.zwiki |
|---|---|
| Message-ID | <20080516002224-0700__10996.6163560332$1210922672$gmane$org@zwiki.org> |
The default skin has the line:: white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */ in the section titled "MathAction styles". According to the w3, pre-line does this: This value directs user agents to collapse sequences of whitespace. Lines are broken at newlines in the source, at occurrences of "\A" in generated content, and as necessary to fill line boxes. http://www.w3.org/TR/CSS21/text.html Which is exactly the opposite to what we want in <pre> blocks (e.g. indented code). I think this mistake was made because at the time no browser actually implemented pre-line - at first !iCab came along (which almost nobody uses), but now at least Safari does implement it, and python code in Zwikis is absolutely unusable. So I'll just go and remove that line. -- forwarded from http://zwiki.org/1414CSSPreLineStyleForPreIsWrong#[email protected]