Bug 84280 - khtml mishandles CSS PRE (with testcase)
Summary: khtml mishandles CSS PRE (with testcase)
Status: RESOLVED DUPLICATE of bug 26326
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: FreeBSD Ports Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-30 20:57 UTC by Arnt Gulbrandsen
Modified: 2004-06-30 21:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
test case - same as in the message body (609 bytes, text/html)
2004-06-30 21:00 UTC, Arnt Gulbrandsen
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***