Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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.

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

Successfully merging a pull request may close this issue.

2 participants