-
Notifications
You must be signed in to change notification settings - Fork 143
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
Display.withCrLf() is producing wrong line breaks on Windows #1708
Display.withCrLf() is producing wrong line breaks on Windows #1708
Conversation
I developed the fix on MacOS, so I had no change to test the fix. Would be nice if someone on windows can retest the fix. |
e4017cd
to
7552d5b
Compare
acfa734
to
889de2c
Compare
@Christopher-Hermann
Your fix works like charm. Tested on below environment: |
Replacing all line breaks on windows with CrLf using regex, which is much safer. Fixes eclipse-platform#1557
889de2c
to
fcaa4c2
Compare
I have tested the PR on a Text Control on windows, it works. One thing i want to mention. In this change a single \r will be replaced with a \r\n. Before: This is a change in the behavior. Here are the uses: Please decide which behavior you wish. In my opinion both is fine and this is not that relevant. |
Good point. Since \r was used for new lines in older versions of macOS, I believe the new behavior is correct. It's likely that the old behavior was incorrect anyway. However, changing the behavior is of course never a good idea. Any other opinions on that? |
how old are these "older versions" of macOS? |
Ah I see: "before OS X". This long time ago. I think we can merge this PR as it is. |
950ca8a
into
eclipse-platform:master
|
Replacing all line breaks on windows with CrLf using regex, which is much safer.
Fixes #1557