[PR #1862] [MERGED] Support CRLF when splitting code lines for display #16093

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1862
Author: @silverwind
Created: 6/3/2017
Status: Merged
Merged: 6/10/2017
Merged by: @lunny

Base: masterHead: no-newlines


📝 Commits (5)

  • b677b69 Support CRLF when splitting code lines for display
  • 8e8385a refactor, fix mixed match
  • 00763ed fmt
  • 3c3c8eb split on both LF and CRLF, use raw literals in regexes
  • 623e1a3 simplify

📊 Changes

3 files changed (+7 additions, -3 deletions)

View changed files

📝 public/css/index.css (+1 -1)
📝 public/less/_repository.less (+1 -1)
📝 routers/repo/view.go (+5 -1)

📄 Description

This removes the whitspace between <li> elements and adds them to the tag content, where it was originally removed. display:block because with the previous display:inline-block it would all end up on one line.

Fixes: https://github.com/go-gitea/gitea/issues/1857


🔄 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/1862 **Author:** [@silverwind](https://github.com/silverwind) **Created:** 6/3/2017 **Status:** ✅ Merged **Merged:** 6/10/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `no-newlines` --- ### 📝 Commits (5) - [`b677b69`](https://github.com/go-gitea/gitea/commit/b677b697f093735831b35593225095077add618e) Support CRLF when splitting code lines for display - [`8e8385a`](https://github.com/go-gitea/gitea/commit/8e8385a437d59ec0574322f79cb037b68d434781) refactor, fix mixed match - [`00763ed`](https://github.com/go-gitea/gitea/commit/00763ed31bc5c0aecb80475454c997fd673a1043) fmt - [`3c3c8eb`](https://github.com/go-gitea/gitea/commit/3c3c8eb3320eb90169430ce0ca797bbb7a0e65a7) split on both LF and CRLF, use raw literals in regexes - [`623e1a3`](https://github.com/go-gitea/gitea/commit/623e1a3637991f68441ed58c52f401046f1d285b) simplify ### 📊 Changes **3 files changed** (+7 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `public/css/index.css` (+1 -1) 📝 `public/less/_repository.less` (+1 -1) 📝 `routers/repo/view.go` (+5 -1) </details> ### 📄 Description This removes the whitspace between `<li>` elements and adds them to the tag content, where it was originally removed. `display:block` because with the previous `display:inline-block` it would all end up on one line. Fixes: https://github.com/go-gitea/gitea/issues/1857 --- <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:02:08 -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#16093