<p>In Preferences -> Files there is an option "Ensure new line at file end" that, as far as I understand, is supposed to enable/disable adding of a new line in the end of the file if the last line is not empty. However, even when this option is disabled (unticked), if the last line is not empty and you save the file, Geany adds a new line after the last one.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2310?email_source=notifications&email_token=AAIOWJ62OGYWV7XMZ53RTVLQKZXMJA5CNFSM4IY7JECKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HM24XOQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZMRE5XXNHZODXMVPDQKZXMJANCNFSM4IY7JECA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ26GKS4PNCBWA76ZE3QKZXMJA5CNFSM4IY7JECKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HM24XOQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2310?email_source=notifications\u0026email_token=AAIOWJ62OGYWV7XMZ53RTVLQKZXMJA5CNFSM4IY7JECKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HM24XOQ",
"url": "https://github.com/geany/geany/issues/2310?email_source=notifications\u0026email_token=AAIOWJ62OGYWV7XMZ53RTVLQKZXMJA5CNFSM4IY7JECKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HM24XOQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>