Bug 456196 - Title formatting not properly restored for HTML messages (templates, edit as new)
Summary: Title formatting not properly restored for HTML messages (templates, edit as ...
Status: CONFIRMED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 5.20.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-01 08:47 UTC by missoline
Modified: 2024-03-12 15:31 UTC (History)
2 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 missoline 2022-07-01 08:47:55 UTC
SUMMARY

When opening a previously saved HTML message in the composer to edit it (whether it is a template in the templates folder of the email account, or a regular email that the user wants to "Edit as new"), all the rich formatting related to titles is not properly restored. To be specific:

If some text has the style "Title" applied to it, after saving the message as a template and reopening it in the composer, the text will now have the style "Basic text" and will only be bold (its font size has decreased: the text is as small as Basic Text). The same happens when editing a message as new. 

From a user perspective, the main nuisance is in the template use case since the goal of templates is to have the formatting all set up in advance. Beyond a permanent fix, I would appreciate a temporary workaround if any exists as this is really affecting quality of life for email intensive workflows (customer service, sales, etc...).


STEPS TO REPRODUCE
1. Create a new message with Rich Text, insert some text and give it the "Title" style 
2. Save the message as Template
3. Open the message again in the composer to edit it by double clicking it in the folder template or by using the "Edit as New" option

OBSERVED RESULT

The title has now been switched back to the style "Basic text" and while its boldness is still there, its font size has decreased (it now has the font-size of basic text)

EXPECTED RESULT

The title style should still be present after reopening the message in the composer.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20220625
(available in About System)
KDE Plasma Version: 5.25.1
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.2
Kernel version: 5.18.6-1-default (64-bit)
Comment 1 Carl Schwan 2024-03-12 15:31:14 UTC
I can reproduce the behavior. Small observations I found: the title is saved as a `<p>` in the template, but when exporting the current email from the composer to a html file, it is correctly saved as `<h1>`.