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

DOS line-endings #69

Open
phadej opened this issue Mar 7, 2025 · 1 comment
Open

DOS line-endings #69

phadej opened this issue Mar 7, 2025 · 1 comment

Comments

@phadej
Copy link

phadej commented Mar 7, 2025

When file has DOS line-endings (\r\n), fix-whitespace does nothing. Not even complain.

I think it should be able to convert line-endings to unix ones, i.e. \n.

EDIT: I can write a patch if this feature is ok to have.

@andreasabel
Copy link
Member

Yes, I guess this is useful.
Should probably not be on by default, but under some option, e.g. --dos2unix or --lf.

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