Code line wrapping should be toggleable, and maybe off by default #1305
Labels
No Label
bug
Codeberg
contribution welcome
docs
duplicate
enhancement
infrastructure
legal
licence / ToS
public relations
question
s/Gitea/Forgejo
s/Pages
s/Weblate
s/Woodpecker
security
service
spam
upstream
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Codeberg/Community#1305
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
For code and markdown code blocks, line wrapping should be toggleable, and maybe off by default, for these reasons:
Line-wrapped code looks ugly and unreadable, especially on mobile. This is of course subjective, but as most text editors support toggling wrapping, it's reasonable to provide this option. Also, seems like the wrapping are not by word?
Some people may use plain text to display tables (in code or README), and with line wrapping the formatting is destroyed.
Most other source code hosting site don't wrap code. This does not automatically make the behavior correct, but even just for familiarity, I think it's better to leave it off by default.
I would love Markdown table codes unwrapped. +1
We can likely add a toggle button for this to gitea, but it has to be a server-stored per-user setting.