bug #47883 [Console] Fix error output on windows cli (Maximilian.Beckers)
bug #47883 [Console] Fix error output on windows cli (Maximilian.Beckers)

This PR was submitted for the 6.1 branch but it was squashed and merged into the 4.4 branch instead.

Discussion
----------

[Console] Fix error output on windows cli

| Q             | A
| ------------- | ---
| Branch?       |  6.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #47862
| License       | MIT
| Doc PR        |

In the issue #47862 a console output bug was detected.

Before the fix on a windows cli:
![2022_10_17_09_44_07_test_console_bug](https://user-images.githubusercontent.com/11738128/196130110-1b28d2e9-3e10-438a-9922-b4a1e72bbcca.png)

After the fix:
![2022_10_17_10_34_19_fixed_cli_output](https://user-images.githubusercontent.com/11738128/196130011-04004ce8-5d71-469e-8396-9e4090206952.png)

The problem have been the linebreaks in the message.

Commits
-------

8c563674d9 [Console] Fix error output on windows cli

nicolas-grekas/symfony,derrabus/symfony,HeahDude/symfony,symfony/symfony,derrabus/symfony,symfony/symfony,symfony/symfony,nicolas-grekas/symfony,derrabus/symfony,symfony/symfony,HeahDude/symfony,nicolas-grekas/symfony,HeahDude/symfony,derrabus/symfony,HeahDude/symfony,nicolas-grekas/symfony