[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
one.
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:
<https://savannah.gnu.org/bugs/?57861>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Mike Miller, 2020/02/19
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Rik, 2020/02/19
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Rik, 2020/02/19
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Torsten Lilge, 2020/02/21
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Rik, 2020/02/21
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, John W. Eaton, 2020/02/21
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Mike Miller, 2020/02/21
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Torsten Lilge, 2020/02/22
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character,
Mike Miller <=
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Torsten Lilge, 2020/02/22
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Mike Miller, 2020/02/22
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Torsten Lilge, 2020/02/22
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Mike Miller, 2020/02/22
- Message not available
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Mike Miller, 2020/02/26
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Torsten Lilge, 2020/02/26
- Message not available
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Mike Miller, 2020/02/27
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Torsten Lilge, 2020/02/27
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Mike Miller, 2020/02/28
- [Octave-bug-tracker] [bug #57861] GUI editor should save text files with an implied final newline character, Torsten Lilge, 2020/02/28