Bug 504078 - When viewer non-html message, words between _< and >_ are not shown
Summary: When viewer non-html message, words between _< and >_ are not shown
Status: CONFIRMED
Alias: None
Product: kmail2
Classification: Applications
Component: UI (other bugs)
Version First Reported In: 6.3.3
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-11 20:54 UTC by Jean-Noël Avila
Modified: 2025-05-13 06:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
an example of vanishing phrase (12.66 KB, image/png)
2025-05-11 20:54 UTC, Jean-Noël Avila
Details
Result of the email I just sent you in my reader (20.84 KB, image/png)
2025-05-12 18:25 UTC, Jean-Noël Avila
Details

Note You need to log in before you can comment on or make changes to this bug.
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