Bug 82273

Summary: css tag white-space: pre; ignores linefeeds.
Product: [Applications] konqueror Reporter: Thomas Zander <zander>
Component: khtml rendererAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 3.2.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Thomas Zander 2004-05-26 22:49:45 UTC
Version:           3.2.2 (using KDE 3.2.2, compiled sources)
Compiler:          gcc version 3.3.2 (Debian)
OS:                Linux (i686) release 2.4.21

The page:
http://www.behindthesite.com/blog/C663408438/E876434710/index.html
has a <div class="source-listing">
tag after which it places text in an '<pre>' like-manner using (among others) this item in the definition:
white-space: pre;

In mozilla the linefeeds and indents from the sourcefile are used; in konqueror (BRANCH 3.2) the whole part becomes one long line.


For archival purposes (in case the css changes) the source-listing entry in the css is in full:

.source-listing {
	font-family: courier;
	font-size: 12px;
	background-color: #eeeeee;
	border: 1px solid #00000;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
	margin-left: 24px;
	margin-right: 24px;
	white-space: pre;
}
Comment 1 Gilles Schintgen 2004-05-29 18:59:53 UTC
It seems to me that this is just another duplicate of bug 26326
http://bugs.kde.org/show_bug.cgi?id=26326
Comment 2 Stephan Kulow 2004-05-29 22:42:35 UTC
indeed

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