1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 12:59:11 -05:00
forgejo/routers
Giteabot a1029cb2ca
Fix EOL handling in web editor (#27141) (#27234)
Backport #27141 by @silverwind

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

This does the following for Monaco's EOL setting:

1. Use editorconfig setting if present
2. Use the file's dominant line ending as detected by monaco, which uses
LF for empty file

Co-authored-by: silverwind <me@silverwind.io>
2023-09-24 22:10:38 +00:00
..
api Fix organization field being null in POST /orgs/{orgid}/teams (#27150) (#27163) 2023-09-21 12:15:20 +02:00
common Extract auth middleware from service (#27028) 2023-09-12 08:15:16 +02:00
install Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
private Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web Fix EOL handling in web editor (#27141) (#27234) 2023-09-24 22:10:38 +00:00
init.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00