Skip to content

fix(changelog): ensure user rendered files are trimmed to only a single ending newline #1118

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

Conversation

codejedi365
Copy link
Contributor

@codejedi365 codejedi365 commented Dec 9, 2024

Purpose

  • Trims the resulting templates to a single newline at end of a file

Rationale

I came across this problem when doing some testing of the rebuild repo tests where the changelog would have a random extra newline. This resolves that.

How did you test?

The new rebuild tests will validate this when the tests actually work because the changelogs that are generated match the changelog build through the test code.

@codejedi365 codejedi365 merged commit 6dfbbb0 into python-semantic-release:master Dec 9, 2024
12 checks passed
@codejedi365 codejedi365 deleted the fix/extra-space-after-user-defined-changelog branch December 9, 2024 01:36
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

Successfully merging this pull request may close these issues.

1 participant