[PR #3064] [MERGED] Convert tabs to spaces in .less files #16741

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3064
Author: @silverwind
Created: 12/2/2017
Status: Merged
Merged: 12/2/2017
Merged by: @lafriks

Base: masterHead: fix-indent


📝 Commits (2)

  • a522d1b Convert tabs to spaces in .less files
  • 8fb5fa8 Merge branch 'master' into fix-indent

📊 Changes

12 files changed (+1357 additions, -1357 deletions)

View changed files

📝 public/less/_admin.less (+55 -55)
📝 public/less/_dashboard.less (+141 -141)
📝 public/less/_editor.less (+8 -8)
📝 public/less/_emojify.less (+4 -4)
📝 public/less/_explore.less (+61 -61)
📝 public/less/_form.less (+115 -115)
📝 public/less/_home.less (+34 -34)
📝 public/less/_install.less (+29 -29)
📝 public/less/_markdown.less (+490 -490)
📝 public/less/_organization.less (+160 -160)
📝 public/less/_repository.less (+211 -211)
📝 public/less/_user.less (+49 -49)

📄 Description

Out of the 3469 lines of code in the .less files, 2004 were indented with spaces while 1465 were indented with tabs. I converted all tab indendation to 4 spaces as specified in .editorconfig using this command:

find . ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;

If we want to use tabs in these files, I'd be open to that too, but it should be consistent and in .editorconfig.


🔄 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/3064 **Author:** [@silverwind](https://github.com/silverwind) **Created:** 12/2/2017 **Status:** ✅ Merged **Merged:** 12/2/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `fix-indent` --- ### 📝 Commits (2) - [`a522d1b`](https://github.com/go-gitea/gitea/commit/a522d1b115edad6c1bd3de6c835c5d126a890bc2) Convert tabs to spaces in .less files - [`8fb5fa8`](https://github.com/go-gitea/gitea/commit/8fb5fa8b3d58ccbaf70347594e18c5b343fba9ea) Merge branch 'master' into fix-indent ### 📊 Changes **12 files changed** (+1357 additions, -1357 deletions) <details> <summary>View changed files</summary> 📝 `public/less/_admin.less` (+55 -55) 📝 `public/less/_dashboard.less` (+141 -141) 📝 `public/less/_editor.less` (+8 -8) 📝 `public/less/_emojify.less` (+4 -4) 📝 `public/less/_explore.less` (+61 -61) 📝 `public/less/_form.less` (+115 -115) 📝 `public/less/_home.less` (+34 -34) 📝 `public/less/_install.less` (+29 -29) 📝 `public/less/_markdown.less` (+490 -490) 📝 `public/less/_organization.less` (+160 -160) 📝 `public/less/_repository.less` (+211 -211) 📝 `public/less/_user.less` (+49 -49) </details> ### 📄 Description Out of the 3469 lines of code in the `.less` files, 2004 were indented with spaces while 1465 were indented with tabs. I converted all tab indendation to 4 spaces as specified in [`.editorconfig`](https://github.com/go-gitea/gitea/blob/35cc5b0402d46d672e02bbe1ad15d1460077e8f4/.editorconfig#L18-L20) using this command: ```` find . ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \; ```` If we want to use tabs in these files, I'd be open to that too, but it should be consistent and in `.editorconfig`. --- <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:17:59 -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#16741