-
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 #1557
Display.withCrLf() is producing wrong line breaks on Windows #1557
Comments
@Christopher-Hermann |
Just assigned it to you, but you can of course also work on an issue even if it hasn't been assigned to you :) Btw. if you are looking for a guide to help you through your contribution please try out https://github.com/eclipse-ide, which we are currently building for exactly that situation. |
…platform#1557 Changes functions so line breaks display correctly in Windows. Fixes eclipse-platform#1557
Replacing all line breaks on windows with CrLf using regex, which is much safer. Fixes eclipse-platform#1557
Replacing all line breaks on windows with CrLf using regex, which is much safer. Fixes eclipse-platform#1557
Uploaded a PR since we need this fix in our product and there was no action for some time |
Replacing all line breaks on windows with CrLf using regex, which is much safer. Fixes eclipse-platform#1557
Replacing all line breaks on windows with CrLf using regex, which is much safer. Fixes eclipse-platform#1557
Replacing all line breaks on windows with CrLf using regex, which is much safer. Fixes eclipse-platform#1557
Replacing all line breaks on windows with CrLf using regex, which is much safer. Fixes eclipse-platform#1557
Replacing all line breaks on windows with CrLf using regex, which is much safer. Fixes eclipse-platform#1557
Describe the bug
Display.withCrLf() is producing wrong line breaks based on the heuristics in the Windows implementation. This happens only for Strings that contains broken formatting itself. But nevertheless, I think we can fix this issue by improving the method implementation.
To Reproduce
See Test case
Expected behavior
Expectation is that the method replaces all standalone \n with \r\n.
With the given example, \r\n results in \r\r\n
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
The text was updated successfully, but these errors were encountered: