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

Taplo rewrites file newlines #623

Open
Jasper-Bekkers opened this issue Jun 20, 2024 · 2 comments
Open

Taplo rewrites file newlines #623

Jasper-Bekkers opened this issue Jun 20, 2024 · 2 comments

Comments

@Jasper-Bekkers
Copy link

We recently started using taplo in a cross platform repository where we have git rewrite the newline before commit.

After running taplo-cli, it is now marking loads of files as dirty even though only newlines have changed. This causes git status to report loads of things changed.

Ideally taplo respects the newlines it encountered in the file and doesn't replace them with it's own opinion of what a newline should look like.

@panekj
Copy link
Collaborator

panekj commented Jul 14, 2024

The opinion can be configured with crlf setting under a rule

@Jasper-Bekkers
Copy link
Author

The opinion can be configured with crlf setting under a rule

That option decides crlf or not, it doesnt decide 'use the newlines the file already uses' which is distinct.

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

2 participants