Bug 84280

Summary: khtml mishandles CSS PRE (with testcase)
Product: [Applications] konqueror Reporter: Arnt Gulbrandsen <arnt>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: FreeBSD Ports   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: test case - same as in the message body

Description Arnt Gulbrandsen 2004-06-30 20:57:55 UTC
Version:            (using KDE KDE 3.2.3)
Installed from:    FreeBSD Ports
OS:                Linux

When a <pre>-like effect is done using CSS, konqueror doesn't break lines at CR/CRLF. The following self-contained HTML shows this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>A</title></head><body>
<p>
This is ordinary text. It should look reasonable. The next bit should be <b>five</b> lines of C++ code. Konqueror shows one long line for
me.
<p style="font-family: monospace; white-space: pre;">
void A::b( const C * d, E * f )
{
    if ( f() )
        h( d, f, false, true, false, true, false, true, false, true );
}
<p>
Konqueror gets part of the pre right - the line is not permitted to wrap. But whitespace is collapsed.
<p>
Comments to arnt@gulbrandsen.priv.no, please.
</body>
</html>
Comment 1 Arnt Gulbrandsen 2004-06-30 21:00:16 UTC
Created attachment 6526 [details]
test case - same as in the message body
Comment 2 Maksim Orlovich 2004-06-30 21:31:02 UTC

*** This bug has been marked as a duplicate of 26326 ***