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

"Hello\r\n World" does not round-trip #670

Closed
jamietwells opened this issue Jan 17, 2022 · 4 comments
Closed

"Hello\r\n World" does not round-trip #670

jamietwells opened this issue Jan 17, 2022 · 4 comments
Labels

Comments

@jamietwells
Copy link

jamietwells commented Jan 17, 2022

See demonstration:

https://dotnetfiddle.net/RZBJru

Input:

Hello
 World

yaml:

WindowsTrailingWhitespace: >-
  Hello

   World

Output:

Hello

 World

Expected output:

Hello
 World

Expected yaml:

WindowsTrailingWhitespace: >-
  Hello
   World
@jamietwells
Copy link
Author

I just tired to fix this but it looks like this is already fixed in #626

When is the version with this fix included being released?

@EdwardCooke
Copy link
Collaborator

We're working on getting a new release out soon.

@EdwardCooke
Copy link
Collaborator

The output yaml is still incorrect, it includes the middle whitespace line. Once my previous pull request gets merged in I'll start work on this.

@EdwardCooke
Copy link
Collaborator

Git failed me. It's working on a fresh clone of the master branch. Closing this issue. If you see the problem still there after next release, feel free to re-open it.

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

No branches or pull requests

2 participants