Bug 73038

Summary: [test case] Carriage returns within <div> blocks not handled properly
Product: [Applications] konqueror Reporter: P. Varet <p.varet>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description P. Varet 2004-01-20 16:37:03 UTC
Version:           3.2.0rc1 (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
OS:          Linux

When <div> blocks are used to show some code in a Web page, KHTML ignores the carriage returns within the <div> blocks.

Here is an URL demonstrating this behavior:

http://www.pycs.net/users/0000231/weblog/2004/01/04.html

Here is a simple test case:

<body>
Hiya! I am a test case.
<div>
This is line 1.
This is line 2.
</div>
End of the test case.
</body>

This makes KHTML display:

Hiya! I am a test case. 
This is line 1. This is line 2. 
End of the test case.
Comment 1 Stephan Kulow 2004-01-20 20:01:29 UTC
your test case will be rendered like this in every other browser too. You overlooked one little detail

*** This bug has been marked as a duplicate of 26326 ***
Comment 2 P. Varet 2004-01-20 21:58:17 UTC
Ack, you're right. My apologies about this -- I'm no Web developper, so my test cases basically consist of, "find the smallest code subset that triggers the abnormal behavior". I should have known to test it in another browser.