Skip to content

Added: End of line detection and configuration.#1407

Merged
ssbarnea merged 18 commits intomasterfrom
win_crlf
May 28, 2020
Merged

Added: End of line detection and configuration.#1407
ssbarnea merged 18 commits intomasterfrom
win_crlf

Conversation

@insspb
Copy link
Copy Markdown
Member

@insspb insspb commented May 27, 2020

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

@insspb insspb added windows This issue/PR related to windows systems only WIP Work In Progress feature This issue/PR relates to major feature request. labels May 27, 2020
@insspb insspb self-assigned this May 27, 2020
@insspb insspb changed the title Windows CRLF test Added: End of line detection and configuration. May 27, 2020
@insspb
Copy link
Copy Markdown
Member Author

insspb commented May 27, 2020

To do:

  • Force switcher
  • documentation.

Copy link
Copy Markdown
Contributor

@pombredanne pombredanne left a 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!

@insspb insspb force-pushed the win_crlf branch 2 times, most recently from 9aae5e9 to 8f1dc9e Compare May 27, 2020 17:42
@qlty-cloud-legacy
Copy link
Copy Markdown

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.

@insspb insspb added breaking-change Marks an important and likely breaking change. Require update for major version and removed WIP Work In Progress labels May 28, 2020
@insspb insspb added this to the 2.0.0 milestone May 28, 2020
@ssbarnea ssbarnea merged commit 8a07cac into master May 28, 2020
@ssbarnea ssbarnea deleted the win_crlf branch May 28, 2020 07:48
@simobasso simobasso mentioned this pull request May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Marks an important and likely breaking change. Require update for major version feature This issue/PR relates to major feature request. windows This issue/PR related to windows systems only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants