0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-03 20:29:51 -05:00
forgejo/templates
Gusted 56b7478b25 [UI] Do not include trailing EOL character when counting lines
- Adjust the counting of the number of lines of a file to match the
amount of rendered lines. This simply means that a file with the content
of `a\n` will be shown as having `1 line` rather than `2 lines`. This
matches with the amount of lines that are being rendered (the last empty
line is never rendered) and matches more with the expecation of the
user (a trailing EOL is a technical detail).
- In the case there's no EOL, the reason why it was counting
'incorrectly' was to show if there was a trailing EOL or not, but now
text is shown to tell the user this.
- Integration test added.
- Resolves Codeberg/Community#1612

(cherry picked from commit 5cf976739c)
2024-08-06 12:24:38 +00:00
..
admin [UI] Fix admin layout 2024-07-31 04:13:40 +00:00
api/packages/pypi
base Add slogan config (#3752) 2024-06-07 17:12:48 +00:00
custom
devtest Fix some URLs whose sub-path is missing (#31289) 2024-06-09 16:04:57 +02:00
explore [I18N] Injected updated time in translation string (#3837) 2024-05-20 18:47:35 +00:00
mail Remove title from email heads (#3810) 2024-05-17 10:10:33 +00:00
org [BUG] Fix mobile UI for organisation creation 2024-07-07 19:32:50 +00:00
package Fix: Name conan remote forgejo 2024-07-12 13:28:33 +00:00
projects Merge pull request 'Replace gt-word-break with tw-break-anywhere' (#4102) from 0ko/forgejo:ui-replace-gt-word-break into forgejo 2024-06-11 10:39:03 +00:00
repo [UI] Do not include trailing EOL character when counting lines 2024-08-06 12:24:38 +00:00
shared Remove tab key handling in markdown editor, add toolbar buttons instead, re #4072 #4142 (#4263) 2024-06-30 13:03:32 +00:00
status Add slogan config (#3752) 2024-06-07 17:12:48 +00:00
swagger Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00
user [UI] Fix scoped-access-token 2024-07-24 21:36:12 +00:00
webhook
home.tmpl Add slogan config (#3752) 2024-06-07 17:12:48 +00:00
install.tmpl A few cosmetic improvements to the installation page (#4170) 2024-06-18 09:49:56 +00:00
post-install.tmpl