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

v3: leading newline gets removed #755

Open
natasha41575 opened this issue Jun 25, 2021 · 1 comment
Open

v3: leading newline gets removed #755

natasha41575 opened this issue Jun 25, 2021 · 1 comment

Comments

@natasha41575
Copy link

natasha41575 commented Jun 25, 2021

When writing a file such as


a:
  b:
    c: d

The newline at the top of the file is not preserved. It appears that this only happens with the first leading newline; if there are multiple leading newlines only one is removed.

This started happening after 496545a; prior to this commit the leading newline was preserved correctly.

@natasha41575
Copy link
Author

#753 has a fix for this in its last commit.

I have also made a separate PR #756 to add a test and address this issue specifically.

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

No branches or pull requests

1 participant