Comment 5 for bug 379367

Revision history for this message
Raf Schietekat (raf-schietekat) wrote : Re: gedit add a newline at the end of file.I hope it can be config

I have reraised this issue because this disturbing misfeature has always bugged me no end with vi. The appropriate behaviour is to let the user confirm that the file has no final newline, with a checkbox to always silently add one (which I will most definitely never use!), and a preferences setting (so I can deactive it if necessary). Now there is no indication of whether a final newline is present (should we cat the file on a terminal, perhaps?), and no possibility to create a file without one (and I was so happy to have gedit for that). Least surprise has always been an element of a good user interface, and this is both surprising and extremely annoying. Please don't patronise your users by dismissing a well-founded concern.