2 Blank Lines Shown at End of Files Already Ending with Newline

Hi. For all my files I always manually add a newline at the end. Gitea shows another blank line, so there would be two in total. Is there any way to suppress this behavior, so that just one blank line is shown at the end of the file?

E.g. the same file in VIM vs. in Gitea: