Submitted by : betabug at: 2008-05-16T00:22:24-07:00 (12 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

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.

Which is exactly the opposite to what we want in <pre> blocks (e.g. indented code). With this in place, python code is not indented any more.

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 not readable.

So I'll just go and remove that line.

Patch is there --betabug, Fri, 16 May 2008 00:48:46 -0700 reply

This is really simple, just plain remove the line.

... --Simon Michael, Fri, 16 May 2008 07:20:07 -0700 reply

Wonderful! I wondered what was doing that.

fix is in -unstable repo, closing --betabug, Fri, 16 May 2008 09:42:07 -0700 reply

Status: open => closed

... --simon, Fri, 23 Oct 2009 07:08:17 -0700 reply

Name: '#1414 CSS pre-line style for "pre" is wrong' => '#1414 indentation in literal code blocks not displayed'