Skip to content

blocks: Remove extra newlines from entry blocks#276

Merged
wjt merged 1 commit intomainfrom
extra-newlines
Oct 18, 2024
Merged

blocks: Remove extra newlines from entry blocks#276
wjt merged 1 commit intomainfrom
extra-newlines

Conversation

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

wjt commented Oct 18, 2024

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

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