Bug 199309 - Kmail trims whitespace greater than 1 character long (such as tab, or subsequent spaces) when using html signature
Summary: Kmail trims whitespace greater than 1 character long (such as tab, or subsequ...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeui (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 17:27 UTC by G Cohen
Modified: 2023-01-08 05:16 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 G Cohen 2009-07-07 17:27:43 UTC
Version:            (using KDE 4.2.90)
OS:                Linux
Installed from:    Ubuntu Packages

Kubuntu 9.04 with KDE RC1

As above, Kmail will remove any white space larger than 1 character (tabs, subsequent spaces) when using html signature.
Comment 1 Allen Winter 2009-07-07 22:38:14 UTC
unless you put whitespace within a <pre>..</pre> structure, html does remove whitespace.  that's normal.

can you give us an example html signature that doesn't work as you expect?
Comment 2 G Cohen 2009-07-08 10:24:38 UTC
Essentially, since once you tick Use HTML you get formatting buttons, I was expecting the signature to work like a WYSIWYG editor, which doesn't fully, re trimming white space.

Then I think the issue is more of understanding how the feature work. There is no help file with Kmail (at least in Kubuntu) and I couldn't find any clue online. I have done some tests to see if I'm missing the obvious, but entering something like:
<strong>My Name</strong><pre>                   </pre>&nbps;<strong>My Company</strong> 

prints the html tags.
I would appreciate a hint of how it works, or a link to anything which could help.
Comment 3 Allen Winter 2009-07-08 23:31:30 UTC
It is WYSIWYG.

Ok, so what you are really asking for is a new feature added to the html editing capabilities for <pre>...</pre> text.


I'll reassign this to the richtexteditor component then.
Comment 4 G Cohen 2009-07-09 07:38:51 UTC
Thank you.
Comment 5 Antonio 2009-08-27 13:53:19 UTC
I concur, that would be a useful feature.

My use case:
I need to have whitespace in a signature to properly align text blocks, like one would via a table (which also is missing in KMail's HTML mode). I don't really care if the resulting e-mail is in plain text or HTML.

But that signature only displays properly when using plain-text e-mails with a plain-text signature. As soon as HTML formatting is enabled in addition to that signature, of course, the resulting e-mail trims all whitespace, and the alignment is a mess.

By the way, maybe there is a way to use plain text signatures with HTML e-mails?

Anyway, the addition of a <pre> tag to the rich text editor would remedy this for using HTML e-mails, because I could then simply use all-HTML e-mails. Thanks in advance!
Comment 6 G Cohen 2009-08-27 19:54:41 UTC
I use plain text signatures with HTML emails until <pre> or &nbsp; or even more advanced HTML features make their way into KMail's signature.

Although it does work it takes quite a lot of of work to get it right since what you see is not what you get and is not really what other people get when they receive your email (their fault though, they use Outlook). 

I'm not sure what sort of HTML tags KMail is able to render when displaying emails, but an alternative to adding <pre> or any other tags would be to add a non-WYSIWYG signature editor.
Comment 7 Andrew Crouthamel 2018-11-02 23:02:16 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-11-16 05:25:57 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 9 Justin Zobel 2022-12-09 22:12:49 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 10 Bug Janitor Service 2022-12-24 05:22:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2023-01-08 05:16:05 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!