[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    Bug#47241: line break immediately after PRE should be ignored
From:       gjditchfield () acm ! org
Date:       2002-08-30 21:23:23
[Download RAW message or body]

Package: khtml
Version: 4.0 (using KDE 3.0.3 )
Severity: normal
Installed from:    Unofficial RedHat
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-112)
OS:                Linux (i586) release 2.4.18-10
OS/Compiler notes: 

A line break _immediately_ after a PRE tag should be ignored, instead of being \
rendered as a blank line.  The HTML 4.01 spec, section B.3.1 \
http://www.w3.org/TR/html401/appendix/notes.html#notes-line-breaks says
"SGML (see [ISO8879], section 7.6.1) specifies that a line break immediately \
following a start tag must be ignored, as must a line break immediately before an end \
tag. This applies to all HTML elements without exception."  Konqueror from KDE 3.0.3, \
3.0.0 and 3.0.1 don't ignore the line break, and render a blank line above the \
content of the PRE element.

Here's a sample HTML file.  Galeon 1.2.0 and Mozilla 0.9.9 render this correctly (the \
                white spaces above the two PRE elements have the same height).
--------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
<html>
<body>
<p>The spacing above and below</p>
<pre>this one line PRE element</pre>
<p>should be exactly the same as the spacing above and below</p>
<pre>
this multiline PRE element
</pre>
<p>because whitespace before start tags should be ignored.</p>
</body>
</html

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)


(Complete bug history is available at http://bugs.kde.org/db/47/47241.html)
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
http://mail.kde.org/mailman/listinfo/konq-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic