Microsoft Exchange can change the contents of the mails it receive. One of its "features" is to speeze consecutive spaces in HTML parts. Unfortunately, they also do that inside <p> tags (even if CSS says "white-space: pre-wrap;"). (indeed, the bug come from Ms Exchange, but I didn't find their bug tracker) Unfortunately, spaces matter in kmail. To reproduce: 1. Open a new mail 2. Check that HTML composing is enabled 3. Type multiple consecutive spaces, inside sentence or to indent paragraph 4. Sent this mail to a MS Exchange recipient (maybe the bug depends of Exchange configuration, but don't know how it works) 5. Check the mail received, the consecutive spaces are dropped If you send the same mail with Outlook, you will notice that the space are changed into . I think that applying the same rule in kmail would work.
Git commit 073808251a3f89f9f026bdc0789fe73548a0d7ff by Laurent Montel. Committed on 03/04/2020 at 11:49. Pushed by mlaurent into branch 'release/20.04'. Fix Bug 419448 - MS Exchange sqeeze spaces in HTML messages FIXED-IN: 5.14.0 M +1 -1 CMakeLists.txt M +17 -0 messagecomposer/src/composer-ng/richtextcomposerng.cpp https://commits.kde.org/messagelib/073808251a3f89f9f026bdc0789fe73548a0d7ff