bugGNU nano - Bugs: bug #56180, with --trimblanks, an automatic...

 
 

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

bug #56180: with --trimblanks, an automatic hard-wrap does not always remove trailing whitespace

Submitter:  Benno Schulenberg <bens>
Submitted:  Sat 20 Apr 2019 12:39:15 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sun 21 Apr 2019 07:40:52 AM UTC, comment #3: 

Fixed in git, commit 297fb013.

Benno Schulenberg <bens>
Group administrator
Sun 21 Apr 2019 07:25:40 AM UTC, comment #2: 

A somewhat more realistic scenario:

  src/nano --ignore --break --fill=68 --auto --trim +9,65 README

Then type: M-P <Space> <Space>

Result: the existing space plus the two typed spaces stay put.  But they should have been snipped.

Benno Schulenberg <bens>
Group administrator
Sat 20 Apr 2019 05:20:06 PM UTC, comment #1: 

Bug exists since version 2.9.3, commit 91073be4.  It worked fine in version 2.9.2 (with 'set justifytrim').

That commit was a fix for bug #52948.  So... it wasn't the fully-correct fix, just a workaround.

Benno Schulenberg <bens>
Group administrator
Sat 20 Apr 2019 12:39:15 PM UTC, original submission:  

To reproduce, run:

  src/nano --ignore --break --fill=9 --trim

Then type: M-P x <Left> 11 <Space> 22 <Space> 33 <Space>

Result: the space after "33" is not trimmed.

Another recipe: same command, but then type:
M-P  xx  <Home>  11 <Space> <Space> 22 <Space> <Space>

Result: the double space after "22" is not trimmed.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2019-04-25 bens Open/ClosedOpen Closed
    2019-04-21 bens StatusIn Progress Fixed
    2019-04-21 bens StatusNone In Progress
    2019-04-20 bens Assigned toNone bens
        Summaryoption --trimblanks does not always work with --trimblanks, an automatic hard-wrap does not always remove trailing whitespace

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code