forked from symfony/symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged branch fabpot/console-render-exception (PR symfony#9055)
This PR was merged into the 2.2 branch. Discussion ---------- [Console] Fixed exception rendering | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#9045 | License | MIT | Doc PR | n/a When an exception message contains styles, the output is not the expected one. This PR addresses this issue. Commits ------- c8d0342 [Console] fixed exception rendering when nested styles 1f88a28 [Console] added some more information about OutputFormatter::replaceStyle() a47d663 [Console] fixed the formatter for single-char tags c6c35b3 [Console] Escape exception message during the rendering of an exception
- Loading branch information
Showing
7 changed files
with
74 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 16 additions & 8 deletions
24
src/Symfony/Component/Console/Tests/Fixtures/application_renderexception3.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/Symfony/Component/Console/Tests/Fixtures/application_renderexception3decorated.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
|
||
[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<p>this is html[0m[37;41m</p> [0m | ||
[37;41m [0m | ||
|
||
|
||
[32mfoo3:bar[0m | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters