Bug 173877 - Kmail html composer strips blank lines
Summary: Kmail html composer strips blank lines
Status: RESOLVED DUPLICATE of bug 86925
Alias: None
Product: kmail
Classification: Applications
Component: composer (show other bugs)
Version: 1.10.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
: 174783 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-30 04:59 UTC by Kishore
Modified: 2008-11-10 19:30 UTC (History)
4 users (show)

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 Kishore 2008-10-30 04:59:35 UTC
Version:           1.10.1 (using 4.1.2 (KDE 4.1.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.27-7-generic

KMail HTML composer strips blank lines in the text. So suppose i type
"Hi,

How are you?"
It is saved as
"Hi
How are you?"

This really messes up readability of the mail.
Comment 1 Jaime Torres 2008-10-30 11:04:56 UTC
In kmail 1.10.90 (svn r876071), the blank lines created by kmail are read fine by kmail.
In fact, the html code that is issued for the first blank like is ([ instead of <): [br] and for the next blank lines is:
[p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"][br][/p]

In any case, thunderbird also recognizes the blank lines.
Comment 2 Tim Middleton 2008-10-31 20:27:36 UTC
This is a serious problem for me. It makes my outgiong HTML mail look extremely unprofessional, and makes KMail look very bad (because everyone in my organization knows I'm the only one NOT using Outlook, and my emails ARE the only ones ironically that lately look like they are written by a computer illiterate). 

The "margin-top:0px; margin-bottom:0px;" embedded in the paragraph tags effectively eliminates the paragraph spacing. Period.

I actually don't write HTML mails myself, but when replying to other poeple's HTML email KMail does this to me. So, for example, when I reply to anyone in my company who has emailed me.

To see the problem simply reply to one of the HTML emails you've received (surely you have a spam or something handy). Write a few words with blank lines between them. Then look for the message in your sent folder. Below the message where KMail shows you the message parts, right click on the "HTML Document" part and save it. Now view that saved HTML in Konqueror, Firefox, Opera, or even Safari or IE if you want to. Every HTML renderer that knows about CSS styles visually removes the paragraphs breaks.

In short, what you will not see is the text looking like it looked when you composed it with blank lines between paragraphs.

(Interestingly the message looks almost okay in Lynx, which doesn't use styles... except the quoted text has a blank line between every line.)

(And in the source I see all these -qt-* styles as well; I see that KMail is using the odd tactic of placing empty <p></p> tag parse using extra -qt-* styles between paragraphs; but also removing the margins from them. Is KMail like microsoft now that they feel the need to add a bunch of platform-specific tags to accomplish its purposes? Look where it gets us...)

Comment 3 Jaime Torres 2008-10-31 20:32:41 UTC
Confirmed. kmail should generate good html for every html viewer, not only kmail and thunderbird.
Comment 4 John Murphy 2008-11-03 01:30:36 UTC
Please fix this annoying problem. 
I agree with Tim Middleton - this makes Kmail look amateur and its users as unprofessional. 
Otherwise Kmail is a great email client - such a great pity it is hampered by html weaknesses.
Comment 5 Thomas McGuire 2008-11-03 20:13:38 UTC
The problem of blank lines being removed is already fixed in r856724.
Cleaner HTML output is in the process and will hopefully make it into 4.2.

*** This bug has been marked as a duplicate of bug 86925 ***
Comment 6 Jaime Torres 2008-11-10 19:30:07 UTC
*** Bug 174783 has been marked as a duplicate of this bug. ***