[bug #16452] mcedit forgets POSIX newline at end of file
- From: Rudolf Polzer <INVALID NOREPLY gnu org>
- To: Rudolf Polzer <nospam_rpolzer nospammail net>, Oswald Buddenhagen <ossi kde org>, mc-devel gnome org
- Cc:
- Subject: [bug #16452] mcedit forgets POSIX newline at end of file
- Date: Thu, 27 Apr 2006 21:47:53 +0000
Follow-up Comment #2, bug #16452 (project mc):
Sorry, I forgot to quote the definition of "line" too...
3.205 Line
A sequence of zero or more non-<newline>s plus a terminating <newline>.
http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap03.html
However, another solution would be using syntax highlighting to highlight a
missing newline at the end of the file if it is known that a file format
requires it (just like Makefiles are handled when a line starts with eight
spaces).
And since many tools get quite irritated if the newline is missing (another
prominent example is "cat" - people often wonder why the shell prompt gets
in
the same line as the file data - and then of course some old versions of vi
and
less that I've seen on some older UNIX systems), it would be good to at
least
highlight the missing newline even by default.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=16452>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]