lyz-code / yamlfix

A simple opinionated yaml formatter that keeps your comments!
https://lyz-code.github.io/yamlfix
GNU General Public License v3.0
171 stars 38 forks source link

Keep CRLF/LF line-ending style #225

Open mdeweerd opened 1 year ago

mdeweerd commented 1 year ago

When fixing a file using the Windows Python versions, the line endings change from LF style to CRLF style, and only when there is some other change in the file.

I suggest to keep the style of the line endings (keep LF or CRLF whatever it was originally) - or enable forcing a line ending.

yamlfix --version

 yamlfix: 1.8.0
 Python: 3.10.9
 Platform: Windows-10-10.0.22621-SP0

lyz-code commented 1 year ago

Hi @mdeweerd thank you for taking the time to open an issue. Sadly giving support to Windows is not on my menu, but if you want to make a PR I'll review it