[Github-comments] [geany/geany] Adds newline even to empty files (#1539)

Vasiliy Faronov notifications at xxxxx
Mon Jul 10 11:41:44 UTC 2017


If the preference *Ensure new line at file end* is enabled, Geany adds a newline even to a completely empty file, so it’s impossible to save a file of 0 bytes.

While strictly speaking this does just what the preference label says, in practice the point of this feature, I think, is to ensure that *every line ends* with a newline, so it shouldn’t apply when there are no lines.

That’s what the other editors (nano, vi, emacs) do — they only add a newline to a non-empty file.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1539
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170710/a752f3bb/attachment.html>


More information about the Github-comments mailing list