Skip to content

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.

3 participants