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

If there is no newline at the end of the dependency block they will be put after each other, breaking the file #53

Open
stevenliebregt opened this issue Nov 2, 2022 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@stevenliebregt
Copy link

Let's say you have a file with a dependencies block at the end of it

image
With no newline at the end.

If you then run cargo-sort-ck -w it turns it into the following:

image

Which in turn breaks the TOML

@DevinR528
Copy link
Owner

Oh yeah this is a problem, thanks for the report. It also relates to #43 since allowing files to end without trailing newline would increase the chance of people running in to this.

@DevinR528 DevinR528 added bug Something isn't working good first issue Good for newcomers labels Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants