bugGNU Octave - Bugs: bug #57860, GUI editor should offer a setting...

 
 

bug #57860: GUI editor should offer a setting to remove trailing whitespace when saving

Submitter:  Mike Miller <mtmiller>
Submitted:  Wed 19 Feb 2020 08:41:32 PM UTC
   
 
Category:  GUI Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 22 Feb 2020 08:56:44 PM UTC, comment #5: 

This feature works for me, except for the last line. I think there is some interference with the other setting, I'll reopen that one and add some more details, we can keep this one closed.

Mike Miller <mtmiller>
Group Member
Sat 22 Feb 2020 08:05:58 PM UTC, comment #4: 

Besides the short testing period in stable (the patch remove part of the file contents!) new strings are introduced which would require a new update of the translation files.

Maybe we can cherry pick this commit for an upcoming mionor release.

Torsten Lilge <ttl>
Group Member
Sat 22 Feb 2020 06:52:20 PM UTC, comment #3: 

Much better to keep this on default.

Mike Miller <mtmiller>
Group Member
Sat 22 Feb 2020 06:19:16 PM UTC, comment #2: 

Could this go into stable? It seem a long time to wait for it in default.

Doug Stewart <dastew>
Sat 22 Feb 2020 04:22:59 PM UTC, comment #1: 
Torsten Lilge <ttl>
Group Member
Wed 19 Feb 2020 08:41:32 PM UTC, original submission:  

Many programming editors offer a command or a setting to automatically remove all trailing whitespace at the ends of lines in a file when the file is saved.

I think the Octave GUI editor should offer such a setting in the Editor preferences. When enabled, all lines will be automatically filtered to trim trailing spaces and tabs (and any other non-ASCII space-like characters?).

This would help new contributors edit and write m-file functions for submission to Octave, since this is part of our coding style guide.

Mike Miller <mtmiller>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

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 dastew (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  •  

    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.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-22 ttl StatusNone Fixed
        Open/ClosedOpen Closed
    2020-02-19 mtmiller Carbon-CopyRemoved 80942 -

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code