octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

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