[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57861] GUI editor should save text files with

From: Mike Miller
Subject: [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character
Date: Sat, 22 Feb 2020 16:06:07 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36

Update of bug #57861 (project octave):

                  Status:                   Fixed => In Progress            
             Open/Closed:                  Closed => Open                   


Follow-up Comment #8:

This isn't quite right for me yet.

1. When this setting is enabled, but not the setting to remove trailing
whitespace, this setting deletes all trailing whitespace on the last line of
the file.

2. This should not delete multiple newlines and spaces at the end of the file
when saving, and it should always append a newline. If I press Enter to add a
blank line in the editor, the file should end with two newlines, not just

3. After saving, the file is reloaded in the editor, and it now shows a blank
line at the end of the file that wasn't there before. When this setting is
enabled and a file is read that ends in a newline, one final newline should be
deleted and removed before adding the text to the editor text view.

So when saving a file, always append a single line ending, unless the buffer
is completely empty. When loading a file, always remove the last line ending,
if there is one.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]