Bug 442416

Summary: Text highlight while composing or replaying the message
Product: [Applications] kmail2 Reporter: Sławek <slawomir.ajon>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: major CC: montel, slawomir.ajon
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 21.08.2
Attachments: Screen of the composer and message in sent folder

Description Sławek 2021-09-14 07:07:30 UTC
Created attachment 141536 [details]
Screen of the composer and message in sent folder

Hello guys,

While creating a new message or replaying to someone else message. I would like to be able to highlight some text. While I'm using a different colour for each highlight, everything works fine. When I would like to use the same colour for all highlight in my message. When I complete and send it, only first line remain highlighted but any other text remain the same.


STEPS TO REPRODUCE
1. Highlight few lines with the same colour while composing the message. It's important to highlight different line with some space in between with not highlighted text. Use the same colour for all the highlight. If using different colour for each highlight, everything looks OK.
2. Send a completed message. 

I attached some screens to give a better idea what I mean.

OBSERVED RESULT
In Sent messages folder as well as in the recipient mail box, only first line remain highlighted. Any other highlighted text return to normal.

EXPECTED RESULT
All highlighted text will remain highlighted, not only the first line.
Comment 1 Laurent Montel 2021-09-14 07:47:28 UTC
I will investigate it.
Comment 2 Laurent Montel 2021-09-14 11:01:09 UTC
I confirm it
Comment 3 Laurent Montel 2021-09-14 11:31:32 UTC
Git commit e82a45cb189916e54d405809da4a05d0742af37c by Laurent Montel.
Committed on 14/09/2021 at 11:30.
Pushed by mlaurent into branch 'release/21.08'.

Fix Bug 442416 - Text highlight while composing or replaying the message
FIXED-IN: 21.08.2

M  +48   -0    src/grantleebuilder/autotests/texthtmlbuildertest.cpp
M  +2    -0    src/grantleebuilder/autotests/texthtmlbuildertest.h
M  +2    -0    src/grantleebuilder/markupdirector.cpp

https://invent.kde.org/pim/kpimtextedit/commit/e82a45cb189916e54d405809da4a05d0742af37c