Bug 141497

Summary: templates: improve whitespace handling
Product: [Applications] kmail Reporter: Maciej Pilichowski <bluedzins>
Component: templatesAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WAITINGFORINFO    
Severity: wishlist CC: bjoern, dmiceman, luigi.toscano
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Maciej Pilichowski 2007-02-10 18:55:19 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    SuSE RPMs

Currently KMail has problem with whitespaces in templates, for example
%REM something%-<a here is the space at the end>
%QUOTE

This it quite trivial example of course. Anyway, the problem is they are not seen but they matter when the template is used.
a) do the whitespaces at the end are important? if no, I think it would be the best to strip them
b) if (a)-yes maybe put gray boxes instead of whitespaces

I would opt for (a) -- easy, efficient, and for any case if it would matter for the user it could be a equivalent
<space>%NL

when %NL stands for new line (but I don't even know if such macro exists in templates).
Comment 1 Maciej Pilichowski 2007-02-10 18:56:16 UTC
PS. 
(c) same as (a) but with extra tag %SPACE if anyone really needs space

Now I opt for (c) it is even easier to do and much more elegant :-)
Comment 2 Thomas McGuire 2007-07-17 13:38:54 UTC
Mass-changing component to "templates" and adding original template author to 
CC list.
Comment 3 Myriam Schweingruber 2012-08-18 09:02:11 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 4 Luigi Toscano 2012-08-19 00:28:47 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.