[Geany-devel] "Ensure new line on file end" inserts new line when file is empty
Eugene Arshinov
earshinov at xxxxx
Sat Oct 16 08:52:51 UTC 2010
On Sat, 16 Oct 2010 17:49:27 +1100%
Lex Trotman <elextr at gmail.com> wrote:
> Hi Eugene,
>
> I'm not sure it is a bug, the pref setting is there is to ensure that
> the file ends in a newline, so an empty file will become just a new
> line (see od below). Thats working correctly AFAICT.
>
> lex at fred5 ~ $ od untitled
> 0000000 000012
> 0000001
>
> Cheers
> Lex
>
Hi.
Yes, of course it's logical that newline is always added, even for
empty files. But it becomes that for non-empty files you get one empty
line at the end, for empty files -- two empty lines. It's not quite
useful and (IMHO) bad.
Best regards,
Eugene.
More information about the Devel
mailing list