Summary: | Generated HTML code should use <br> instead of <p> | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Braden MacDonald <mail> |
Component: | composer | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | adarovsky, anyaddress, dag, e.andres, erickjx, gabrijel, gaston.tonietti, gregap, jochen, kde-bugs, kitts.mailinglists, kollix, morphizer, sezovr |
Priority: | NOR | ||
Version: | 1.10.0 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Illustration of before-and-after differences |
Description
Braden MacDonald
2004-08-10 18:20:23 UTC
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. |