This is something you can change in Edit - Preferences - Files -
Saving Files - Ensure new line at file end.
** Changed in: geany (Ubuntu)
Status: New = Invalid
** Converted to question:
https://answers.launchpad.net/ubuntu/+source/geany/+question/107387
--
Editor adds a /n saving a
** Attachment added: Dependencies.txt
http://launchpadlibrarian.net/35890755/Dependencies.txt
** Attachment added: XsessionErrors.txt
http://launchpadlibrarian.net/35890756/XsessionErrors.txt
--
Editor adds a /n saving a file opened in a SMB .gvfs/
https://bugs.launchpad.net/bugs/485988