Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra blank line shown at end of files #21255

Closed
ghost opened this issue Sep 24, 2022 · 2 comments
Closed

Extra blank line shown at end of files #21255

ghost opened this issue Sep 24, 2022 · 2 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@ghost
Copy link

ghost commented Sep 24, 2022

Description

Any file that ends in a single \n (so no visible trailing newline in text editors) seems to have an extra blank numbered line shown when viewing it from Gitea on web. I'm posting this as a new issue as #4050 is closed and locked but it appears to have regressed.

I can't seem to reproduce this on try.gitea.io so perhaps it's been fixed in dev already, but on a quick search I haven't found any recent commits or issues relating to this.

Gitea Version

1.17.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No EOL:
Screenshot of No EOL

Single EOL\n:
Screenshot of Single EOL

Double EOL\n\n:
Screenshot of Double EOL

Git Version

2.31.0

Operating System

Debian 11

How are you running Gitea?

Precompiled build, systemd service

Database

MySQL

@ghost ghost added the type/bug label Sep 24, 2022
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Sep 24, 2022

Can you try it with 1.18 (https://try.gitea.io)?

I think the problem has a clear solution now (but not in 1.17, due to some long argument before 1.17's freezing)

@wxiaoguang wxiaoguang added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail and removed type/bug labels Sep 24, 2022
@ghost
Copy link
Author

ghost commented Sep 24, 2022

Yeah seems fine there, didn't spot that this was explicitly addressed recently.

@ghost ghost closed this as completed Sep 24, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

No branches or pull requests

1 participant