[PR #4054] [MERGED] Added deletion of an empty line at the end of the file (#4050) #17216

Closed
opened 2025-11-02 12:29:46 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4054
Author: @axifive
Created: 5/27/2018
Status: Merged
Merged: 5/29/2018
Merged by: @lunny

Base: masterHead: remove-last-blank-line


📝 Commits (3)

  • 5f26ebc Added deletion of an empty line at the end of the file (#4050)
  • cce9e6d Merge branch 'master' into remove-last-blank-line
  • 4091be3 Merge branch 'master' into remove-last-blank-line

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 routers/repo/view.go (+4 -0)

📄 Description

fix #4050
Now the same viewing behavior as the GitHub.

While viewing:
2018-05-27 3 08 22

While editing:
2018-05-27 3 08 36


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4054 **Author:** [@axifive](https://github.com/axifive) **Created:** 5/27/2018 **Status:** ✅ Merged **Merged:** 5/29/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `remove-last-blank-line` --- ### 📝 Commits (3) - [`5f26ebc`](https://github.com/go-gitea/gitea/commit/5f26ebc3899310d4a5c1aa2710c980dfd37e0919) Added deletion of an empty line at the end of the file (#4050) - [`cce9e6d`](https://github.com/go-gitea/gitea/commit/cce9e6de2f76867ea381c3da8cb63e001fc8c4e4) Merge branch 'master' into remove-last-blank-line - [`4091be3`](https://github.com/go-gitea/gitea/commit/4091be3f756f1279208f2e25cc288bf0c722e07e) Merge branch 'master' into remove-last-blank-line ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/view.go` (+4 -0) </details> ### 📄 Description fix #4050 Now the same viewing behavior as the GitHub. While viewing: ![2018-05-27 3 08 22](https://user-images.githubusercontent.com/844963/40581209-51b09ba2-615b-11e8-8648-ec7a16cf5365.png) While editing: ![2018-05-27 3 08 36](https://user-images.githubusercontent.com/844963/40581216-7063dca8-615b-11e8-87d2-d1dd3f6a1997.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:29:46 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17216