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

Submitted by:  Mike Miller <mtmiller>
Submitted on:  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

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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>
Project Administrator
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>
Project Member
Sat 22 Feb 2020 06:52:20 PM UTC, comment #3: 

Much better to keep this on default.

Mike Miller <mtmiller>
Project Administrator
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>
Project 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>
Project Administrator


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

Attach Files:

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)

    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 project 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.7