This bug is fixed in Ubuntu 12.04 Precise Pangolin and newer (earlier
releases are no longer supported expect for some server releases). This
bug is only marked invalid for Ubuntu because it is unknown in which
release this bug was fixed. The fix released status for the non-Ubuntu
Gedit means that this bug is also fixed by Gedit's developers (Gnome).

There is no GUI option in Gedit itself, but you can use the Dconf Editor
which is fully graphical. You may need to install it first (eg. from the
Software Centre) if you cannot find it from your system's menus. Once
you have opened Dconf Editor, navigate to the
/org/gnome/gedit/preferences/editor folder and uncheck the "ensure-
trailing-newline" option. The default value for this option is checked;
ie. to add a new line to the file's end.

I hope this answers your questions. Please do not hesitate to ask for
further help or clarification about this bug. Thanks.

-- 
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:
  Fix Released
Status in “gedit” package in Ubuntu:
  Invalid

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