bugGNU nano - Bugs: bug #56307, justifying a region can leave...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #56307: justifying a region can leave trailing whitespace

Submitter:  Benno Schulenberg <bens>
Submitted:  Sat 11 May 2019 08:23:16 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sun 08 Mar 2020 03:20:15 PM UTC, comment #1: 

Fixed in git, commit c934c1d7.

Benno Schulenberg <bens>
Group administrator
Sat 11 May 2019 08:23:16 AM UTC, original submission:  

To reproduce, run:

  src/nano --ignore +11,38 README

Type: M-P M-A <Ctrl+Down> ^J

Note that the two spaces that were before "Because" remain.  This is undesirable.

Now type M-U, type a few spaces after "Yuck." and then do the same operation on the same piece of text again.  Note that the spaces after "Yuck." get removed.  The same should happen to the spaces that were before "Because".

Rationale: when the selected piece of text is in the middle of a paragraph, with some text before it and some text after it, then nano effectively creates three new paragraphs.  The new paragraph after the selected region gets an indentation that matches the current one, even though the text was not selected.  So the new paragraph before the selected region should have its trailing whitespace trimmed, just like when it were selected.

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-25 bens Open/ClosedOpen Closed
    2020-03-08 bens StatusNone Fixed
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code