After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770662 - [WK2] Leading space disappears on paragraph format change
[WK2] Leading space disappears on paragraph format change
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Composer
3.21.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Tomas Popela
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2016-08-31 17:14 UTC by Milan Crha
Modified: 2020-05-15 09:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Milan Crha 2016-08-31 17:14:29 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.
Comment 1 Tomas Popela 2016-09-22 10:52:39 UTC
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+
Comment 2 Milan Crha 2020-05-15 09:04:13 UTC
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