Skip to content
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

Wrong line endings used when building YAML edits #1939

Closed
DanTup opened this issue Feb 16, 2024 · 0 comments · Fixed by dart-lang/yaml_edit#66
Closed

Wrong line endings used when building YAML edits #1939

DanTup opened this issue Feb 16, 2024 · 0 comments · Fixed by dart-lang/yaml_edit#66

Comments

@DanTup
Copy link
Contributor

DanTup commented Feb 16, 2024

Trying to track down some failing tests on Windows in the analysis server, and it seems to be caused by this:

https://github.com/dart-lang/yaml_edit/blob/2a9a11bee120d507d61d501c34585440be8c12b6/lib/src/strings.dart#L277

It's using \n but never gets rewritten to lineEnding, so the resulting YAML has a mix of \n and \r\n on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants