Hi, all. If you are using 12.04 or 12.10 (other versions not tested), you can set the behavior already.
1. Run dconf Editor (dconf-editor) 2. Go to /org/gnome/gedit/preferences/editor 3. Uncheck ensure-trailing-newline if you don't want automatically added newline. -- 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 : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

