Summary: | [testcase] No line wraps in [code] tag | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Jonathan Thomas <echidnaman> |
Component: | khtml | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kgeorgokitsos, Ronny.Standtke, thomas.friedrichsmeier |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Jonathan Thomas
2007-12-15 21:06:18 UTC
Confirmed in KDE 3.5.7 and 3.97.1 "[code]" is essentially a <pre>-tag. The page links two CSS files: <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/wiki/winehq/css/common.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="screen" href="/wiki/winehq/css/screen.css"> screen.css does not define any special handling for <pre>, but common.css defines: pre { /* snip */ white-space: pre; /* begin css 3 or browser specific rules - do not remove! see: http://forums.techguy.org/archive/index.php/t-249849.html */ white-space: pre-wrap; word-wrap: break-word; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; /* end css 3 or browser specific rules */ } Not sure what is the correct behavior, here (but Opera agrees with Firefox). Confirmed in 4.1.60 svn trunk 831729 *** Bug 188715 has been marked as a duplicate of this bug. *** *** Bug 161964 has been marked as a duplicate of this bug. *** SVN commit 948754 by ggarand: fix calcMinMaxWidth broken logic for new lines in preserveLF mode (white-space: pre, pre-wrap, pre-line). This bug would prevent line-wraping in a lot of situations. New lines could also affect non-pre codepath - so make the code tighter, matching the actual comments! BUG: 154143, 130181 M +8 -4 render_text.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=948754 SVN commit 948757 by ggarand: automatically merged revision 948754: fix calcMinMaxWidth broken logic for new lines in preserveLF mode (white-space: pre, pre-wrap, pre-line). This bug would prevent line-wraping in a lot of situations. New lines could also affect non-pre codepath - so make the code tighter, matching the actual comments! BUG: 154143, 130181 M +8 -4 render_text.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=948757 |