Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Console] Fixed unsetting of setted attributes on OutputFormatterStyle
Unset only previous setted styles in place of all styles, before this fix, OutputFormatterStyle reset all attributes with '\e[0m' sequence. Now, if a foreground is setted, reset only the foreground so you can use innested attributes Conflicts: src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleTest.php src/Symfony/Component/Console/Tests/Formatter/OutputFormatterTest.php src/Symfony/Component/Console/Tests/Output/OutputTest.php
- Loading branch information
Danilo Silva
authored and
Danilo Silva
committed
Mar 18, 2014
1 parent
71dc07c
commit ce0c4b4
Showing
5 changed files
with
83 additions
and
77 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
26 changes: 13 additions & 13 deletions
26
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 |
---|---|---|
@@ -1,27 +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 [39;49m | ||
[37;41m [Exception] [39;49m | ||
[37;41m Third exception [39;49m[34;41mcomment[39;49m[37;41m [39;49m | ||
[37;41m [39;49m | ||
|
||
|
||
|
||
|
||
[37;41m [0m | ||
[37;41m [Exception] [0m | ||
[37;41m Second exception [0m[33mcomment[0m[37;41m [0m | ||
[37;41m [0m | ||
[37;41m [39;49m | ||
[37;41m [Exception] [39;49m | ||
[37;41m Second exception [39;49m[33mcomment[39m[37;41m [39;49m | ||
[37;41m [39;49m | ||
|
||
|
||
|
||
|
||
[37;41m [0m | ||
[37;41m [Exception] [0m | ||
[37;41m First exception [0m[37;41m<p>[0m[37;41mthis is html[0m[37;41m</p>[0m[37;41m [0m | ||
[37;41m [0m | ||
[37;41m [39;49m | ||
[37;41m [Exception] [39;49m | ||
[37;41m First exception [39;49m[37;41m<p>[39;49m[37;41mthis is html[39;49m[37;41m</p>[39;49m[37;41m [39;49m | ||
[37;41m [39;49m | ||
|
||
|
||
[32mfoo3:bar[0m | ||
[32mfoo3:bar[39m | ||
|
||
|
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