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
Detect the original file newline style and apply it to rendered template #1159
Detect the original file newline style and apply it to rendered template #1159
Conversation
This solves my problem with Windows, any way this could be merge? |
I think this is bitting several Windows users for some of the Cookiecutter project generators I have: tiangolo/full-stack-fastapi-couchbase#8, tiangolo/full-stack-fastapi-template#13 I guess this is probably bitting many more users of other Cookiecutters. Is there a chance a maintainer can take a look at this PR? Is there any help we can provide? |
We are also affected by this. This would solve many problems with generated unix files on windows. |
6c231ee
to
f1fc75f
Compare
Synck fork with Cookiecutter
@franciscomoma Merged to #1407 |
Thank you so much! |
Hello! I've seen that this issue was still open, and I decided to fix it detecting the original file ending style and applying it to the rendered new file.
I've also added a .gitattributes file to set CRLF to files that ends with *crlf.txt.