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
Added: End of line detection and configuration. #1407
Conversation
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Synck fork with Cookiecutter
To do:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for picking this up!
9aae5e9
to
8f1dc9e
Compare
Code Climate has analyzed commit a34df66 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 99.7% (0.0% change). View more on Code Climate. |
This pull request is based on two old PRs #406 and #1159 and solve problem from issue #405
What changed:
After this PR merged cookiecutter will detect new-line symbol on each file in template and will use same new-line as in template, no matter on what system is deployed.
For template developers we introduce special key
_new_lines
that allow to force new line character on deployment. (check included docs).This can break some old templates, that why marked as breaking change.
Some related tests refactored in style described in #1403 and #1405