Skip to content

blocks: Remove extra newlines from entry blocks #276

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

Merged
merged 1 commit into from
Oct 18, 2024
Merged

blocks: Remove extra newlines from entry blocks #276

merged 1 commit into from
Oct 18, 2024

Conversation

dbnicholson
Copy link
Member

Entry blocks already add a trailing newline, so there's no need to include one in the code template. See the ready, process and define_method blocks, for example. Having one doesn't cause any harm, but it does make the generated code uglier.

@dbnicholson dbnicholson requested review from manuq and wjt October 18, 2024 15:26
@wjt
Copy link
Member

wjt commented Oct 18, 2024

Funny, the tests are asserting that the ugly newlines are present...

@dbnicholson
Copy link
Member Author

Funny, the tests are asserting that the ugly newlines are present...

Whoops! Forgot to check the tests...

Entry blocks already add a trailing newline, so there's no need to
include one in the code template. See the ready, process and
define_method blocks, for example. Having one doesn't cause any harm,
but it does make the generated code uglier.
@wjt wjt merged commit 30514af into main Oct 18, 2024
3 checks passed
@wjt wjt deleted the extra-newlines branch October 18, 2024 17:57
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