Skip to content

Conversation

@AA-Turner
Copy link
Member

str.splitlines() doesn't preserve trailing lines (unless using keepends=True), whereas str.split('\n') does. Use the latter form, and assert that modified files end with a blank line in tests.

A

AA-Turner and others added 3 commits November 12, 2025 16:30
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
@AA-Turner AA-Turner requested a review from hugovk November 12, 2025 16:31
Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hugovk hugovk merged commit c0f574f into main Nov 12, 2025
19 checks passed
@hugovk hugovk deleted the readme-whitespace branch November 12, 2025 17:06
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.

3 participants