[bug #16452] mcedit forgets POSIX newline at end of file

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>.


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

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
the same line as the file data - and then of course some old versions of vi
less that I've seen on some older UNIX systems), it would be good to at
highlight the missing newline even by default.


Reply to this item at:


  Message sent via/by Savannah

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]