[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: |
Thu, 27 Feb 2020 03:06:02 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36 |
Follow-up Comment #17, bug #57861 (project octave):
I just built the latest default (e82d00e8be37), started the GUI, and verified
these settings:
>> __event_manager_gui_preference__ ("editor/force_newline")
ans = true
>> __event_manager_gui_preference__ ("editor/rm_trailing_spaces")
ans = false
I opened the editor, got a new blank tab, and typed "x = 1 " (four trailing
spaces), and clicked Save. I called the file ~/ascript.m. When I look at the
file with cat -A or od, I can see that it ends with a space, not a newline.
Actually, if I only type "x", the same thing occurs, I get a 1 byte file
containing "x", no newline.
Weird, now I'm not even getting a newline added to new files with both
settings enabled again.
I'm also now seeing spaces in the middle of lines being removed, not just
trailing spaces. For example
line 1
line 2
line 3
line 4
becomes
line1
line2
line3
line4
after saving.
_______________________________________________________
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, (continued)
- [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, 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
- [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 <=
- [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