[Github-comments] [geany/geany] document: do not add a new-line to an empty file. Fixes #1539. (#1810)

elextr notifications at xxxxx
Sat Mar 17 21:39:04 UTC 2018


Options should be simple consistent and not have lots of special cases attached (a rule Geany doesn't always follow and that causes confusion in many cases).  So if the option says it ensures newline at EOF then thats what it should do.  Yes that means you can't use Geany to create empty files, but if you add the exception then you can't use Geany to create files with one newline.

Its not as if there are not existing methods of creating truly empty files, `touch` being the canonical one, and my desktop's file manager also offers to create empty files if you are command line challenged.  But external means for creating files with a newline are less obvious (`cat` and so on).

Another way of looking at is that Geany is primarily an editor, if you are not going to edit the file (its intended to be empty) why open it in Geany?

So personally I'd make it "won't fix" except we don't have that label (__yet__, I have been itching to make one though :).


-- 
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/pull/1810#issuecomment-373954569
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180317/6139c1e5/attachment-0001.html>


More information about the Github-comments mailing list