Summary: | app-editors/gedit-3.16.3: Final newline in file is not shown | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Raymond Jennings <shentino> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugzilla.gnome.org/show_bug.cgi?id=625955 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Raymond Jennings
2015-09-08 05:06:37 UTC
This is a deliberate design decision by gedit's creators - see https://bugzilla.gnome.org/show_bug.cgi?id=625955 By default, a last newline is always added because gedit's creators assume that's what you usually want (and for C-like languages and common config files, it probably is what most users usually want). If you are editing php code or some other file type where last newlines are undesirable, you can change gedit's behavior using 2 methods: * gui: open dconf-editor, disable org → gnome → gedit → preferences → editor → ensure-trailing-newline * command line: gsettings set org.gnome.gedit.preferences.editor ensure-trailing-newline false If you think this option should easier to find, or that the default behavior should be different - please tell that to gedit upstream developers. I checked upstream and they already got chewed out by quite a few users. They stubbornly refused to back down. Easy workaround so closing. |