| Summary: | khtml mishandles CSS PRE (with testcase) | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Arnt Gulbrandsen <arnt> |
| Component: | khtml | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | FreeBSD Ports | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | test case - same as in the message body | ||
Created attachment 6526 [details]
test case - same as in the message body
|
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>