tamasfe / taplo

A TOML toolkit written in Rust
https://taplo.tamasfe.dev
MIT License
1.26k stars 108 forks source link

Taplo rewrites file newlines #623

Open Jasper-Bekkers opened 1 week ago

Jasper-Bekkers commented 1 week ago

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.