Bug 504078

Summary: When viewer non-html message, words between _< and >_ are not shown
Product: [Applications] kmail2 Reporter: Jean-Noël Avila <jn.avila>
Component: UIAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: normal CC: montel
Priority: NOR    
Version First Reported In: 6.3.3   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: an example of vanishing phrase
Result of the email I just sent you in my reader

Description Jean-Noël Avila 2025-05-11 20:54:09 UTC
Created attachment 181185 [details]
an example of vanishing phrase

SUMMARY

Pure text messages (not announced as HTML) are wrongly displayed: when a word is inserted between '_<' and '>_' signs, this word disappears in the final rendering.

STEPS TO REPRODUCE
1. send to oneself a text email with the body containing a phrase such as "you could expect to see _<foo>_ on this line." 
2. Receive the email, and read it

OBSERVED RESULT

The email reads ""you could expect to see __ on this line." 

EXPECTED RESULT

The email reads ""you could expect to see _<foo>_ on this line." 

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Debian GNU/Linux 12 Wayland
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION

If you read this report in KMail, the bug may render this description difficult to understand. Switch to source view to have the original message.
Comment 1 Laurent Montel 2025-05-12 14:54:17 UTC
Hi
Could you please send me an email with problem ?
I can't reproduce it.

Thanks
Comment 2 Jean-Noël Avila 2025-05-12 18:25:16 UTC
Created attachment 181222 [details]
Result of the email I just sent you in my reader
Comment 3 Laurent Montel 2025-05-13 05:19:47 UTC
Thanks. I will be able to test it !
Regards

(I can see bug)
Comment 4 Laurent Montel 2025-05-13 06:57:50 UTC
Git commit d8e896a325d58ddbe3c0291ff56866e7270a1b20 by Laurent Montel.
Committed on 13/05/2025 at 06:57.
Pushed by mlaurent into branch 'master'.

Add autotest about bug 504078

M  +22   -0    src/grantleebuilder/autotests/texthtmlbuildertest.cpp
M  +1    -0    src/grantleebuilder/autotests/texthtmlbuildertest.h

https://invent.kde.org/pim/kpimtextedit/-/commit/d8e896a325d58ddbe3c0291ff56866e7270a1b20