Bug#561325: closed by Jari Aalto <jari.aalto at cante.net> (Bug#561325 Close)
Jari Aalto
jari.aalto at cante.net
Thu Mar 4 09:42:20 UTC 2010
Marc MAURICE <marc.maurice at smile.fr> writes:
> Hello,
>
> All standard text editors add a newline at end of files (vi, emacs,
> gedit, kedit...).
I'm sure there are opinions in a way or another.
If editor does something more that what the user types, that behavior
may not please users that want full control.
E.g. emacs(1) doesn't change the file without special setting:
C-h v require-final-newline
require-final-newline is a variable defined in `files.el'.
Its value is nil
Documentation:
Whether to add a newline automatically at the end of the file.
There is also joe(1) which doesn' add newline. But as you pointed out,
there are editors that alwasys add <newline>, like vi(1). And for
programming code (C++ standard, compilers, diffs, patches) the final
newline is desired.
As the upstream of leafpad has no plans to add the feature, there is not
much we can do. I can only suggests to send him patches to make this
behavior configurable and hope the patches are accepted.
Jari
More information about the pkg-gnome-maintainers
mailing list