Bug 82906 - Please support css3 "whitespace: pre-wrap" or some proprietary css for soft wrap of <pre> elements.
Summary: Please support css3 "whitespace: pre-wrap" or some proprietary css for soft w...
Status: RESOLVED DUPLICATE of bug 26326
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-05 21:05 UTC by Brian "netdragon" Bober
Modified: 2004-07-28 16:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian "netdragon" Bober 2004-06-05 21:05:55 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    RedHat RPMs
OS:                Linux

There is no way to make the <pre> element wrap in konqueror that is compatible with other browsers. All browsers have a proprietary wrap support, and CSS3 has white-space: pre-wrap. Please add support for <pre> wrappng. Mozila, Opera, and IE all allow for it.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style>
pre {
 white-space: -moz-pre-wrap;  /* Mozilla, supported since 1999 */
 white-space: -pre-wrap;      /* Opera 4 - 6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 white-space: pre-wrap;       /* CSS3 - Text module (Candidate Recommendation)
                                 http://www.w3.org/TR/css3-text/#white-space */
 word-wrap: break-word;       /* IE 5.5+ */
}
</style>
</head>
<body>
<pre wrap="soft">
Cross-compiling Mozilla Using Wine

You can compile Mozilla on Linux using Microsoft Visual C++ and Wine...

Wine is a Windows environment for Linux so you can run Windows applications in Linux. It is still alpha, but good enough to compile Mozilla.

This is an alternative to mingw, yada yada.

End snippet.

</pre>
</body>
</html>
Comment 1 Scott Jacobsen 2004-06-22 18:15:44 UTC
Is this why http://bugs.gentoo.org/show_bug.cgi?id=827 doesn't wrap? None of the <pre> text on this page wraps, making it very hard to read.
Comment 2 Stephan Kulow 2004-06-22 19:30:23 UTC

*** This bug has been marked as a duplicate of 26326 ***
Comment 3 Maksim Orlovich 2004-07-02 19:39:50 UTC
Not the same, that bug is actually secretly about whitespace stripping inside the parser, this requests an additional property. Probably not a wishlist, either, since every other browser seems to have something like that
Comment 4 Stephan Kulow 2004-07-28 16:46:22 UTC
it really is a duplicate. Just another value of whitespace, that was added with css3. Good we waited :)

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