symfony/symfony — pull request #3802 by Seldaek (2012-04-06 11:59:35+00:00)
Title: [Console] Exception rendering fixes

This fixes two things:

- `\r`'s in exception messages were output, creating really weird results on windows.
- long exception messages were wrapping and then the "red" block was completely messed up, with half black/half red lines, now it's wrapped before output if the terminal width can be detected.

If you don't care about merging this for 2.0, you can also merge the `console_ex` branch which applies on master. Due to moving tests and renaming of some normalize stuff in the tests, the two test patches are kind of different.

RFC: I am really not sure where to put those getTerminalWidth/Height methods. I guess this is not the best place.