Closed

Description
- Gitea version (or commit ref): 1.4.1 and 2eabf18 (try.gitea.io)
- Git version: 1.4.1 built with: bindata, sqlite
- Operating system: Debian Stretch
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (example URL in description)
- No
- Not relevant
- Log gist:
Description
When viewing any file in the repository, it shows an extra, blank line at the end that shouldn't be there. When using the web editor to change the file, the additional blank line is also there.
Example
On GitLab the file is shown correctly, with 3 lines:
https://gitlab.com/higan/higan/blob/master/.gitignore
1 higan/profile/WonderSwan.sys/internal.ram
2 higan/profile/WonderSwan Color.sys/internal.ram
3 docs_build/
But on Gitea, the same file is shown incorrectly with 4 lines:
https://try.gitea.io/giteauser/example/src/branch/master/.gitignore
1 higan/profile/WonderSwan.sys/internal.ram
2 higan/profile/WonderSwan Color.sys/internal.ram
3 docs_build/
4
If you clone the repo from Gitea and open the file in vim, it correctly has 3 lines:
1 higan/profile/WonderSwan.sys/internal.ram
2 higan/profile/WonderSwan Color.sys/internal.ram
3 docs_build/
~
~