8000 [Console] Do no preprend empty line if the buffer is empty by lyrixx · Pull Request #48487 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] Do no preprend empty line if the buffer is empty #48487

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
Dec 6, 2022

Conversation

lyrixx
Copy link
Member
@lyrixx lyrixx commented Dec 5, 2022
Q A
Branch? 6.3
Bug fix? no
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

It's really weird to preprend an empty line when in our code we write:

protected function execute(InputInterface $input, OutputInterface $output): int
{
    $io = new SymfonyStyle($input, $output);
    $io->text(sprintf('Running project %s', $project->getId()));
}

@fabpot
Copy link
Member
fabpot commented Dec 6, 2022

Thank you @lyrixx.

@fabpot fabpot merged commit 94d6bbb into symfony:6.3 Dec 6, 2022
@lyrixx lyrixx deleted the console-auto-prepend branch December 6, 2022 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0