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

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

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

Fixed in git, commit c934c1d7.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.


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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    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.5