I came across this bug while trying to understand bash. If I do

$ printf "%s$IFS" > out.txt

and look at out.txt in gedit, I am quite unaware that $IFS has the
newline character as its last character, because gedit thinks "aha, this
file already has a newline character as its last character, so I needn't
display it". Just to be sure I opened out.txt in hexedit before opening
it in gedit. I believe policy should be divorced from mechanism - if I
want a newline I should be able to add it myself; and have gedit show
whether it's there or not.

Incidentally, in <https://bugzilla.gnome.org/show_bug.cgi?id=625955>
Jesse van den Kieboom has provided a patch, but I'm not enough of a
linux guru to know how to apply it, and I don't see an entry for it in
gconf-editor.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/379367

Title:
  Gedit adding a newline at the end of file should be configurable

To manage notifications about this bug go to:
https://bugs.launchpad.net/gedit/+bug/379367/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to