Skip to content
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

Fix #216, extra newline with customize_gemfiles #222

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

joe-sharp
Copy link
Contributor

On line 67 we join with two newlines, which will create an extra newline with how we recommend people use the Gemfile customization feature. This PR chomps the final newline to prevent that extra empty line described in issue #216

@joe-sharp joe-sharp force-pushed the main branch 4 times, most recently from 21f21b7 to 1495c7b Compare February 29, 2024 06:42
@joe-sharp joe-sharp mentioned this pull request Feb 29, 2024
@joe-sharp
Copy link
Contributor Author

@nickcharlton this is ready for review but we may want to just proceed with #223 since it has this commit and adds a spec. Happy to proceed however works best for you.

When using `customize_gemfiles`, two new line characters end up being
inserted after the block comment, but it should only be one. This trims
out the output to remove it.

Fixes thoughtbot#216.
@nickcharlton
Copy link
Member

Thanks! I think this is worth merging in first to keep them separate, we can bring in the spec in #223.

@nickcharlton nickcharlton merged commit f5e31c4 into thoughtbot:main Mar 26, 2024
1 check passed
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.

2 participants