-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Revert "Fix EOL handling in web editor" #28101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit 3a187ea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't accept a full revert, the editorconfig detection has to stay, that is valuable in any case.
Also the linked issue seems odd, unless monaco uses browser OS, in which case we should override it to LF for cases with no .editorconfig and add a ini setting for it.
This behavior already effects end users. If there is no quick fix (eg: in 1 or 2 days), let's revert it to old behavior. Then you have enough time to propose a new fix. |
It's a trivial fix, I will provide soon. That's assuming the current behaviour can even be considered "broken", I think monaco is doing the sensible thing by defaulting to user's platform, thought I guess in terms of git content, more users prefer LF. |
#28119 is not right. Will merge this reverting PR in 1 day. |
I'm strongly against this because it removes editorconfig support. |
No, it doesn't "remove editorconfig support" because #27141 is not right either. Actually:
I have explained above: if there is no quick fix, reverting is the best choice. |
@silverwind the last call for the merge in 12h, if you still have objection, please show a real case to help understanding the "problem" you are worrying about. |
But it broke many users' online editors. I was surprised when I edit a readme and only add one new line then all lines were changed with no warning until I take a look at diff. |
The only "necessary" revert is this line which previously did the replacement on the server: Ideally we should just convert line endings based on the new server pref. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* giteaofficial/main: Revert "Fix EOL handling in web editor" (go-gitea#28101) Fix swagger title (go-gitea#28164)
Reverts #27141
close #28097