Revert "Fix EOL handling in web editor" (#28101)
Reverts go-gitea/gitea#27141 close #28097
This commit is contained in:
parent
4d0eba8e0a
commit
37ed92d6fd
3 changed files with 6 additions and 22 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue