Hello,

All standard text editors add a newline at end of files (vi, emacs, gedit, kedit...).
Only Windows Notepad doesn't.

It's part of the POSIX standard :

http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap03.html#tag_03_205

See also the following arguments :

(scroll down to the last posts)

http://support.github.com/discussions/site/226-no-newline-at-end-of-file-appended-at-the-end-of-my-source-listing-in-the-commit-view
http://www.codeguru.com/forum/archive/index.php/t-423606.html

Thanks in advance,
Marc


Le 04/03/2010 00:48, Debian Bug Tracking System a écrit :
This is an automatic notification regarding your Bug report
which was filed against the leafpad package:

#561325: Does not add newline at end of file

It has been closed by Jari Aalto <jari.aa...@cante.net>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Jari Aalto 
<jari.aa...@cante.net> by
replying to this email.


------------------------------------------------------------------------

Sujet:
Bug#561325 Close
Expéditeur:
Jari Aalto <jari.aa...@cante.net>
Date:
Thu, 04 Mar 2010 01:46:17 +0200
Destinataire:
561325-d...@bugs.debian.org

Destinataire:
561325-d...@bugs.debian.org


Reason for close:

Standard editors do not add sxtra newlines. Feature will not be
implmented.

From: Tarot Osuji <ta...@sdf.lonestar.org>
Subject: Re: Debian leafpad: new release with patches included?
To: Jari Aalto <jari.aa...@cante.net>
Date: 1 hour, 1 minute -- 2010-03-04 00:43 EET
Message-ID: <4b8ee5fb.7060...@sdf.lonestar.org>
References: <87iq9kmshg....@jondo.cante.net>

Hi Jari

#561325
 WinXP's Notepad does not add newline at end of line. I feel no demand.

Regards,
Tarot

------------------------------------------------------------------------

Sujet:
Does not add newline at end of file
Expéditeur:
Marc MAURICE <marc.maur...@smile.fr>
Date:
Wed, 16 Dec 2009 08:50:34 +0100
Destinataire:
sub...@bugs.debian.org

Destinataire:
sub...@bugs.debian.org


Package: leafpad
Version: 0.8.17-1

Leafpad doesn't add a newline character at end of file like other text editors.

Steps to reproduce :

$ leafpad test.txt
# type in a simple word, save and quit
$ cat test.txt
myword$

Thanks in advance,
Good day !
Marc




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to