Bug 166073

Summary: strange behavior of composer in HTML mode
Product: [Applications] kmail Reporter: Gastón M. Tonietti <gaston.tonietti>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 1.9.52   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Original text that I wrote to reproduce the bug
Source for the sent mail

Description Gastón M. Tonietti 2008-07-08 19:14:21 UTC
Version:           1.9.52 (using KDE 4.0.83)
Installed from:    Ubuntu Packages
OS:                Linux

When I write the mail in plain text mode all work fine.
But when I write it in HTML mode, all blank lines are lost, I thinks it is due to use empty paragraphs <p....></p> instead of <br/> to insert empty lines.
Another weird think that happens is that the mail content for text/plain Content-Type uses one line per each word in the mail body, so if I put this in the composer:

KOffice, like most KDE applications, has the unique selling point ...

You will get this in the mail source:

KOffice, 
like 
most 
KDE 
applications, 
has 
the 
unique 
selling
...

You can see it better in the attachments.
Comment 1 Gastón M. Tonietti 2008-07-08 19:17:29 UTC
Created attachment 25943 [details]
Original text that I wrote to reproduce the bug
Comment 2 Gastón M. Tonietti 2008-07-08 19:19:38 UTC
Created attachment 25944 [details]
Source for the sent mail

This is the source shown by the "View Source" dialog
Comment 3 Thomas McGuire 2008-07-09 13:53:50 UTC
I think I fixed the wordwrap issue recently in r828900, see http://websvn.kde.org/?view=rev&revision=828900 (the hidden widget had small width and thus incorrectly wrapped the text).

And for the <p> vs. <br> thing: There's already a bug report about this, see bug 86925.

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