Bug 310403

Summary: more careful handling of HTML-signatures
Product: [Applications] kmail2 Reporter: Silver Salonen <silver.salonen>
Component: config dialogAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version: 4.10.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Silver Salonen 2012-11-20 10:41:03 UTC
I have configured my signature to be HTML. My reply template is:
----------
%CURSOR

--
%SIGNATURE
----------

Every time my signature is used in HTML-reply, there is an empty line added between '--' and my signature. If the reply is plain text, signature starts right after '--'.

Reproducible: Always

Steps to Reproduce:
1. Add HTML-signature for an identity
2. Configure custom reply template, adding %SIGNATURE in there
3. Reply to HTML-email, using HTML as well
Actual Results:  
There's an empty line before the signature

Expected Results:  
There should be no empty line

Sometimes my signature is not used in HTML, although the reply itself seems to be HTML (option "Formatting (HTML)" is enabled). In this case there's no empty line either.
Comment 1 Silver Salonen 2012-11-20 10:52:20 UTC
I re-edited my HTML-signature in 'emailidentities' file by hand - deleted all unnecessary HTML-code and it seemed to fix it. The empty line is gone after I took the signature out of separate paragraph (<p></p>). The HTML-code had gone there by copy-pasting the same signature from one place to another.

Anyhow, maybe KMail should handle HTML-signature more carefully, eg. delete some unnecessary tags upon saving it? HTML-code editor directly in the identity configurator would also help a bit..