Ok, thanks Jari,
But emacs adds the newline when it create a text file from scratch by
default.
Can you just forward my last comment (about the posix standard) to the
upstream.
We should also ask them if they accept such a patch.
I can write it.
Thanks in advance,
Marc
--
Marc MAURICE
Ingénieur Système et Réseaux
Smile - Open Source Solutions (www.smile.fr)
26, cours Gambetta - 34000 Montpellier
Tél : 04 99 77 20 17
Courriel : marc.maur...@smile.fr
Le 04/03/2010 10:42, Jari Aalto a écrit :
Marc MAURICE <marc.maur...@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
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org