Skip to content

[Console] Avoid extra blank lines when rendering exceptions #17040

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 18, 2015
Merged

[Console] Avoid extra blank lines when rendering exceptions #17040

merged 1 commit into from
Dec 18, 2015

Conversation

ogizanagi
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Don't know if it can be considered as a bug fix as it is the behavior since a while (#9055), but I let you see by yourself the old vs new rendering:

Console exception rendering

@@ -673,6 +673,8 @@ public function asXml($namespace = null, $asDom = false)
*/
public function renderException($e, $output)
{
$output->writeln('');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beware when merging in upper branches. Since 2.8, this should be:

- $output->writeln('');
+ $output->writeln('', OutputInterface::VERBOSITY_QUIET);

@nicolas-grekas
Copy link
Member

👍

@fabpot
Copy link
Member

fabpot commented Dec 18, 2015

Thank you @ogizanagi.

@fabpot fabpot merged commit 2e158df into symfony:2.3 Dec 18, 2015
fabpot added a commit that referenced this pull request Dec 18, 2015
…s (ogizanagi)

This PR was merged into the 2.3 branch.

Discussion
----------

[Console] Avoid extra blank lines when rendering exceptions

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Don't know if it can be considered as a bug fix as it is the behavior since a while (#9055), but I let you see by yourself the old vs new rendering:

![Console exception rendering](https://cloud.githubusercontent.com/assets/2211145/11857447/92cebfbe-a458-11e5-9d3d-6147b0338080.PNG)

Commits
-------

2e158df [Console] Avoid extra blank lines when rendering exceptions
@ogizanagi ogizanagi deleted the console_exc_extra_blank_lines branch December 18, 2015 19:19
nicolas-grekas added a commit that referenced this pull request Dec 23, 2015
This PR was merged into the 2.7 branch.

Discussion
----------

[Console][2.7] Fix merge #17040

| Q             | A
| ------------- | ---
| Fixed tickets | 6a92f4e#commitcomment-15080872
| License       | MIT

This change should not be merged in upper branches.

Commits
-------

211d589 [Console][2.7] Fix merge #17040
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