[Geany-devel] "Ensure new line on file end" inserts new line when file is empty

Lex Trotman elextr at xxxxx
Sat Oct 16 06:49:27 UTC 2010


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

On 16 October 2010 17:19, Eugene Arshinov <earshinov at gmail.com> wrote:
> I think it's a bug.  I didn't notice it before as I usually use
> addons plugin with "Strip trailing blank lines" option checked.  Patch
> attached, also modified to use utils_get_eol_char().
>
> Best regards,
> Eugene.
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
>
>



More information about the Devel mailing list