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:  None
Assigned to:  None Open/Closed:  Open

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 Administrator

 

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.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5