Licenses: Force maximum width to 80 characters #12395

Open
opened 2025-11-02 10:08:33 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Gurvan-dev on GitHub (Jan 27, 2024).

Feature Description

Most licenses in options/license are currently formatted as very long lines instead of using text wrapping. This can makes them hard to read on some text editor.

It seems like they used to be 80 characters but that this was overriden by the last commit from GiteaBot.

I tried looking for similar issue but couldn't find any, please feel free to enlighten me if there is a reason as to why this is currently the case.

Screenshots

No response

Originally created by @Gurvan-dev on GitHub (Jan 27, 2024). ### Feature Description Most licenses in `options/license` are currently formatted as very long lines instead of using text wrapping. This can makes them hard to read on some text editor. It seems like they used to be 80 characters but that this was overriden by the last commit from GiteaBot. I tried looking for similar issue but couldn't find any, please feel free to enlighten me if there is a reason as to why this is currently the case. ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 10:08:33 -06:00
Author
Owner

@silverwind commented on GitHub (Jan 29, 2024):

Similar wrapping is performed already for licenses.txt generation, but I guess we'd need the equivalent of wrap-ansi in golang. It have to respect ANSI codes, though as licenses are unlikely to contain those.

2a50d780f9/webpack.config.js (L17)

@silverwind commented on GitHub (Jan 29, 2024): Similar wrapping is performed already for licenses.txt generation, but I guess we'd need the equivalent of [`wrap-ansi`](https://github.com/chalk/wrap-ansi) in golang. It have to respect ANSI codes, though as licenses are unlikely to contain those. https://github.com/go-gitea/gitea/blob/2a50d780f93957223da9494c61bb3181ffa7ff65/webpack.config.js#L17
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12395