GNOME Bugzilla – Bug 770662
[WK2] Leading space disappears on paragraph format change
Last modified: 2020-05-15 09:04:13 UTC
I just changed a preformatted to normal paragraph style when the composer seemed to remove one of the leading spaces of that particular line. Sending the message shows it there, at least when I send early, without editing anything else. Steps: a) new composer, plain text mode, paragraph style Normal b) type:111<enter> c) change paragraph style to Preformatted d) copy & paste the following text between double quotes, but without them; only note that's one long line without any \n or \r and contains 3 leading spaces: " aaa bbb ccccc ddddddddd eee fffffffff gggg hh ii jjj kk ll mmmmm nnnnnnnn oooooo" e) change the paragraph style to Normal Actual result: |111 | aaa bbb.... (only two leading spaces) Expected result: |111 | aaa bbb... (three leading spaces, as it was the state before changing the paragraph style) Note: The paste is not important, I can reproduce it when typing the text as well.
Fixed with the following commits: Bug 770662 - [WK2] Leading space disappears on paragraph format change Make the paragraph use the "white-space: pre-wrap" style to preserve whitespaces. commit 8ad1002 in the master branch for Evolution 3.23.1+ commit a75dc1a in the gnome-3-22 branch for Evolution 3.22.1+
Just for the record, I'm going to revert this change due to [1]. I tested this in the new composer (to be in 3.37.2) and it works properly there. I'm still able to reproduce this in 3.36.2 composer, but I guess (and hope) it won't cause more trouble than visually missing soft new lines in sent messages. [1] https://gitlab.gnome.org/GNOME/evolution/-/issues/909