<p></p>
<p>If I open a newline terminated file in geany extra blank line is displayed:</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/18244032/104231328-b2d9e380-5446-11eb-8f43-e61710d8e325.png"><img src="https://user-images.githubusercontent.com/18244032/104231328-b2d9e380-5446-11eb-8f43-e61710d8e325.png" alt="Screenshot_2021-01-11_19-50-14" style="max-width:100%;"></a></p>
<p>This is incorrect according to the POSIX specification of a file, in which all lines should be newline terminated. From looking at how geany presents the file it would appear that the file has 6 lines with the final line being empty, when it actually only has 5 newline terminated lines.</p>
<p><code>wc</code> correctly reports only 5 lines in this file:</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/18244032/104231821-68a53200-5447-11eb-94bf-bb4511b6054d.png"><img src="https://user-images.githubusercontent.com/18244032/104231821-68a53200-5447-11eb-94bf-bb4511b6054d.png" alt="Screenshot_2021-01-11_19-58-30" style="max-width:100%;"></a></p>
<p>And vim correctly only displays 5 lines:</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/18244032/104231908-81ade300-5447-11eb-9332-0eefe244b49c.png"><img src="https://user-images.githubusercontent.com/18244032/104231908-81ade300-5447-11eb-9332-0eefe244b49c.png" alt="Screenshot_2021-01-11_19-59-12" style="max-width:100%;"></a></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/2727">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYNW3UTYABJFU4RBLDSZNKW7ANCNFSM4V6CSWTQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3TSLZGXFO3JR4LUDTSZNKW7A5CNFSM4V6CSWT2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LVVZ6KA.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/2727",
"url": "https://github.com/geany/geany/issues/2727",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>