Version: 1.7 (using KDE KDE 3.3.0) Installed from: Gentoo Packages OS: Linux When I send a mail using KMail's new HTML composer, The message ends up with an extra line break between each paragraph. For example, in composer I would see: | Hi Joe, | Here is my message. | | Regards, | Braden However, once it is sent, it displays like this: | Hi Joe, | | Here is my message. | | | | Regards, | | Braden Here is an exerpt from the source of a real HTML mail I sent: --Boundary-00=_oLPGBaUgvH7+P4z Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit <html><head><meta name="qrichtext" content="1" /></head><body style="font-size:12pt;font-family:Sans Serif"> <p>This is the message here</p> <p></p> <p>Regards,</p> <p><span style="font-size:11pt;color:#211f91">_______________________</span></p> <p><span style="font-size:10pt;font-weight:600;color:#211f91">Braden MacDonald</span></p> <p><span style="font-size:10pt;font-weight:600;color:#211f91">KTMAFC Webmaster</span></p> </body></html> It seems that the "<p>line</p>" should be replaced with "line<br />" To illustrate I will attach two before and after screenshots.
Created attachment 7062 [details] Illustration of before-and-after differences
Confirmed. I think I already created a patch to address this issue, but it was never applied. I want to make sure there isn't a good reason why it wasn't applied before I apply it. Don.
Kmail Version : 1.9.1 (KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu0 breezy) Operating System : Linux (i686) release 2.6.12-10-k7 Compiler Target : i486-linux-gnu Bug open in 2004, still unconfirmed, still not resolved :( Like bug nĀ°90101. It seems that KMail's HTML composer doesn't use standard tags : it converts a "break line" (<br> tag) by paragraph tag (<p></p>) But, like Braden, it's really when the mail is sent : Kmail Composer doesn't show extra lines it makes. Before Kmail I used Thunderbird, but there was a BIG bug about font size so I decided to replace it by Kmail. But it's the same problem : How to use a HTML composer that isn't able to show correctly its own HTML code ? So, now, I don't use HTML composer, I compose my mails in plain text, it isn't very funny :( Don, where is your patch ?
Still in KMail 1.9.5 KMail will maybe be able to create correct and valid HTML email in the future...
Still in Kmail 1.9.7
*** Bug 153612 has been marked as a duplicate of this bug. ***
*** Bug 158858 has been marked as a duplicate of this bug. ***
FYI: The HTML code is actually produced by QTextEdit::toHtml(). I would be the best to fix QTextEdit to produce better HTML, it is really a Qt bug in my opinion. The other possibility would be to manually iterate over the QTextBlocks in the QTextDocument and build the HTML code yourself. I think this would be a good junior job.
Thomas, In the kpimutils library there is at static function called KPIMUtils::convertToHtml() that might do what you need. I see for sure that this function converts '\n' into <br>
> In the kpimutils library there is at static function called KPIMUtils::convertToHtml() that might do what you need. No, that function is unrelated to the textedit. It just converts hyperlinks from plain text into HTML code, nothing else.
*** Bug 166073 has been marked as a duplicate of this bug. ***
*** Bug 168991 has been marked as a duplicate of this bug. ***
*** Bug 170210 has been marked as a duplicate of this bug. ***
SVN commit 856724 by tmcguire: Add hacky workaround to prevent empty paragraphs from disappearing. CCBUG: 86925
For users who can't/wont update to latest SVN version for now: try adding a space to every empty newline till this fix reaches a stable release.
*** Bug 171270 has been marked as a duplicate of this bug. ***
*** Bug 173877 has been marked as a duplicate of this bug. ***
*** Bug 177468 has been marked as a duplicate of this bug. ***
In KDE 4.3 this works as mentioned in this bug report (using <br> instead <p>...)
This bug is still present on my system: KDE 4.3.1, KMail 1.12.2, QT 4.5 (as far as I can tell).
Still present on my Systems, too, very annoying. KDE 4.3.3, QT 4.5.3 and KDE 4.3.4, QT 4.5.3
This is still happening for me on KMail 1.13.2, KDE 4.4.2 on Kubuntu. All my emails look terribly unprofessional because of this. Somebody has got to reopen and fix this bug; it's getting to the point where I want to switch to something else after having used KMail since at least 2000.
Has been an issue for me for a long time now, can we get this reopened? KDE 4.4.2, Kmail 1.13.2, Qt 4.6.2 HTML code it generates isn't recognised by clients other than Kmail (Thunderbird/Outlook). Blank lines in particular are a problem. Going to try out latest development version tonight to see if also occurs there.