Bug 141497 - templates: improve whitespace handling
Summary: templates: improve whitespace handling
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: templates (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-10 18:55 UTC by Maciej Pilichowski
Modified: 2012-08-19 00:28 UTC (History)
3 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 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.