trailing blank line in a text file

Matthew Saltzman mjs at ces.clemson.edu
Wed Jul 21 00:09:04 UTC 2004


On Tue, 20 Jul 2004, Alex White wrote:

> > Can anybody tell me what is going on? Why do I get the trailing blank line.
> >
> > Thank you.
> >
> > Olga
>
> What are you using to edit the files in question? I know that
> in FC2 and I think FC1, emacs asks you when you edit a file if
> you want a blank line inserted at the end. Could this be what
           ^^^^^^^^^^^^^^^^^^^^^
> you're seeing?

Not a blank line, a linefeed at the end of the last line.  vi, on the
other hand, always ends lines with a linefeed.  Some programs that read a
line at a time will break if the last line does not end with a linefeed.

-- 
		Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs





More information about the fedora-list mailing list