diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php
index eb665e5bdb49a..6140d3af6e907 100644
--- a/src/Symfony/Component/Console/Application.php
+++ b/src/Symfony/Component/Console/Application.php
@@ -673,6 +673,8 @@ public function asXml($namespace = null, $asDom = false)
*/
public function renderException($e, $output)
{
+ $output->writeln('');
+
do {
$title = sprintf(' [%s] ', get_class($e));
@@ -695,7 +697,7 @@ public function renderException($e, $output)
}
}
- $messages = array('', '');
+ $messages = array();
$messages[] = $emptyLine = $formatter->format(sprintf('
this is html
- foo3:bar - diff --git a/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception3decorated.txt b/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception3decorated.txt index 4bdcd772caae2..718a181986f1f 100644 --- a/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception3decorated.txt +++ b/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception3decorated.txt @@ -1,27 +1,18 @@ - [37;41m [0m [37;41m [Exception] [0m [37;41m Third exception [0m[34;41mcomment[0m[37;41m [0m [37;41m [0m - - - [37;41m [0m [37;41m [Exception] [0m [37;41m Second exception [0m[33mcomment[0m[37;41m [0m [37;41m [0m - - - [37;41m [0m [37;41m [Exception] [0m [37;41m First exception [0m[37;41m[0m[37;41mthis is html[0m[37;41m
[0m[37;41m [0m [37;41m [0m - [32mfoo3:bar[0m - diff --git a/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception4.txt b/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception4.txt index 19f893b0c8528..9d881e7d0fe2b 100644 --- a/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception4.txt +++ b/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception4.txt @@ -1,9 +1,7 @@ - [InvalidArgumentException] Command "foo" is not define d. - diff --git a/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth1.txt b/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth1.txt index 6a98660364219..1ba5f8fdd914d 100644 --- a/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth1.txt +++ b/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth1.txt @@ -1,11 +1,8 @@ - [Exception] エラーメッセージ - foo - diff --git a/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth1decorated.txt b/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth1decorated.txt index c68a60f564df0..f65b3f89ba189 100644 --- a/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth1decorated.txt +++ b/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth1decorated.txt @@ -1,11 +1,8 @@ - [37;41m [0m [37;41m [Exception] [0m [37;41m エラーメッセージ [0m [37;41m [0m - [32mfoo[0m - diff --git a/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth2.txt b/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth2.txt index 545cd7b0b49f9..e41fcfcf675af 100644 --- a/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth2.txt +++ b/src/Symfony/Component/Console/Tests/Fixtures/application_renderexception_doublewidth2.txt @@ -1,12 +1,9 @@ - [Exception] コマンドの実行中にエラーが 発生しました。 - foo -Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: