mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
Revert "Fix EOL handling in web editor" (#28101)
Reverts go-gitea/gitea#27141 close #28097
This commit is contained in:
@ -287,7 +287,7 @@ func editFilePost(ctx *context.Context, form forms.EditRepoFileForm, isNewFile b
|
||||
Operation: operation,
|
||||
FromTreePath: ctx.Repo.TreePath,
|
||||
TreePath: form.TreePath,
|
||||
ContentReader: strings.NewReader(form.Content),
|
||||
ContentReader: strings.NewReader(strings.ReplaceAll(form.Content, "\r", "")),
|
||||
},
|
||||
},
|
||||
Signoff: form.Signoff,
|
||||
|
Reference in New Issue
Block a user