Skip to content

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

Merged
codejedi365 merged 1 commit intopython-semantic-release:masterfrom
codejedi365:fix/extra-space-after-user-defined-changelog
Dec 9, 2024
Merged

fix(changelog): ensure user rendered files are trimmed to only a single ending newline#1118
codejedi365 merged 1 commit intopython-semantic-release:masterfrom
codejedi365:fix/extra-space-after-user-defined-changelog

Conversation

@codejedi365
Copy link
Copy Markdown
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
@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