GNU nano - Bugs: bug #62450, [Wish] add an option to autotrim...
You are not allowed to post comments on this tracker with your current authentication level.
bug #62450: [Wish] add an option to autotrim trailing new lines
Submitter: | Sch <cyq> | ||
Submitted: | Fri 13 May 2022 09:41:20 AM UTC | ||
Severity: | 1 - Wish | Status: | Wont Fix |
Assigned to: | None | Open/Closed: | Closed |
Fri 13 May 2022 03:44:51 PM UTC, comment #2: |
Benno Schulenberg <bens> |
Fri 13 May 2022 09:49:33 AM UTC, comment #1: This following crosstable describes the behaviour I'm imagining:
|
Sch <cyq> |
Fri 13 May 2022 09:41:20 AM UTC, original submission:
Oftentimes during editing we accidentally add extraneous new lines to the end of my file.
|
Sch <cyq> |
Depends on the following items: None found
Items that depend on this one: None found
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 |
---|---|---|---|---|---|
2022-05-30 | bens | Open/Closed | Open | Closed | |
Summary | [Wish] add option to autotrim trailing new lines | [Wish] add an option to autotrim trailing new lines | |||
2022-05-13 | bens | Attached File | - | Added trim-trailing-newlines-when-saving.patch, #53195 | |
Severity | 3 - Normal | 1 - Wish | |||
Status | None | Wont Fix |
Powered by Savane 3.13-758e.
Corresponding source code
You can make this yourself with a wrapper script: let the script trim any trailing newlines after the real nano exits.
Or you could apply the attached patch to your private nano and have nano always trim trailing newlines.
It's too small a thing to add an option for, and it cannot be the standard behavior -- not all people will want it.
(file #53195)