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 Desktop
Packages, which is subscribed to gedit in Ubuntu.
https://bugs.launchpad.net/bugs/379367

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

Status in Light-Weight Text Editor for Gnome:
  New
Status in “gedit” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: gedit

  Ggedit auto adds a newline at the end of file.I hope it can be
  configurable.

  I'm not a c/c++ developer, i'm php developer. but I use gedit for my
  php developing. Gedit auto adds a new line at the end of file, which
  will cause a problem when the program runs. I hope this action can be
  configurable. thanks~!

  ProblemType: Bug
  Architecture: i386
  DistroRelease: Ubuntu 8.10
  ExecutablePath: /usr/bin/gedit
  Package: gedit 2.24.2-0ubuntu1
  ProcEnviron:
   PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
   LANG=zh_CN.UTF-8
   SHELL=/bin/bash
  SourcePackage: gedit
  Uname: Linux 2.6.27-14-generic i686

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to