bugGNU nano - Bugs: bug #63062, [Wish] A feature to trim blanks...


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

bug #63062: [Wish] A feature to trim blanks automatically at the end of lines when the text is saved

Submitter:  Oliver <compiler>
Submitted:  Thu 15 Sep 2022 08:45:19 AM UTC
Severity:  1 - Wish Status:  Wont Fix
Assigned to:  None Open/Closed:  Closed

Discussion locked!

Fri 30 Sep 2022 09:34:01 AM UTC, comment #4: 

Commit 5b654ce9 added the following example binding to the sample nanorc:

## For snipping trailing blanks when you save a file:
bind ^S "{execute}| sed 's/\s\+$//' {enter}{savefile}" main

Benno Schulenberg <bens>
Project Administrator
Thu 15 Sep 2022 11:06:29 AM UTC, comment #3: 

Any solution that anyone might make will not be merged -- that is my decision, as maintainer.  The user can easily implement the desired feature themselves in their .nanorc file.

Benno Schulenberg <bens>
Project Administrator
Thu 15 Sep 2022 09:15:17 AM UTC, comment #2: 

This is an open source project. How dare you mark a wish as wont fix that anyone could fulfill at any time?

And other solutions have nothing to do with nano.

Oliver <compiler>
Thu 15 Sep 2022 08:56:10 AM UTC, comment #1: 

You can make this yourself:

bind ^S "{execute}| sed 's/\s\+$//'{enter}{savefile}" main

Benno Schulenberg <bens>
Project Administrator
Thu 15 Sep 2022 08:45:19 AM UTC, original submission:  

Blanks at the end of a line are of no usage in most cases, with the exception of tables. Theoretically they waste space, and they do in practice waste space if the text does not fit into the last sector because of the blanks.

And if the data gets transmitted or zipped they increase the size of data.

There should be a feature in nano that, when activated automatically removes blanks from line endings.

Oliver <compiler>


(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 (Posted a comment)
  • -email is unavailable- added by compiler (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-09-30 bens Open/ClosedOpen Closed
    2022-09-15 bens Discussion LockUnlocked Locked
    2022-09-15 bens Severity3 - Normal 1 - Wish
        StatusNone Wont Fix

    Back to the top

    Powered by Savane 3.9