Bug 1228962

Summary: evolution line-wrap handles whitespace incorrectly
Product: [Fedora] Fedora Reporter: Matthew Saltzman <mjs>
Component: evolutionAssignee: Milan Crha <mcrha>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: lucilanga, mbarnes, mcrha, tpopela
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-09 13:29:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Saltzman 2015-06-07 06:49:57 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Matthew Saltzman 2015-06-07 07:04:23 UTC
Sorry, must have submitted an empty bug.  Here's the description.

Version-Release number of selected component (if applicable):
evolution-3.16.2.1-2.fc22.x86_64

How reproducible:
Always

Steps to Reproduce:
1. In composer, in normal mode, type a line of text long enough to wrap.
2. At the point where the wrap occurs, add whitespace.
3.

Actual results:
Some whitespace appears at start of wrapped line.

Expected results:
Whitespace at start of wrapped line is suppressed.

Additional info:
Split occurs with an even number of spaces, but not an odd number, and only the last space is on the new line.  Once there are nine spaces, all additional spaces wrap to the new line.

Regression from the version in FC21.

Very bothersome for those of us that double-space between sentences.

Comment 2 Milan Crha 2015-06-08 10:42:56 UTC
Thanks for a bug report. I tried to reproduce this in Fedora 21, evolution 3.12.11, and the extra spaces on at the end of the lines are not hidden anywhere, they are left there. The difference between 3.16.x and 3.12.1x might be that if there are enough spaces to have them wrapped between two lines, the word before the spaces sequence is also wrapped, thus the line doesn't start with a white-space.

Is this what you want, to not start a line with a wrapped white-space, please?

Comment 3 Matthew Saltzman 2015-06-08 13:23:31 UTC
(In reply to Milan Crha from comment #2)
> 
> Is this what you want, to not start a line with a wrapped white-space,
> please?

That's correct.  The whitespace can (should) be left on the previous line, but a wrapped line should never start with whitespace.  (In case of a new paragraph, the preceding line would end with a hard return and the writer would put the indentation in explicitly, or the writer would include vertical whitespace.)

Comment 4 Milan Crha 2015-06-09 13:29:17 UTC
Thanks for the update and confirmation. I moved this upstream [1], for better visibility. Please see [1] for any further updates, eventually CC yourself there, in case an upstream developer would have any questions.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=750636