This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Console/Helper
Fabien Potencier 2145f56920 bug #21958 [Console] Fix bar width with multilines ProgressBar's format (maidmaid)
This PR was squashed before being merged into the 3.2 branch (closes #21958).

Discussion
----------

[Console] Fix bar width with multilines ProgressBar's format

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

The bar width is badly recalculated when we use multilines (``\n``) and bar placeholer (``%bar%``) in ProgressBar's format. The bar width is reduced because multilines is considered as a big oneline. This PR fixes this.

Commits
-------

3d58ab5bad [Console] Fix bar width with multilines ProgressBar's format
2017-04-25 10:15:10 -04:00
..
DebugFormatterHelper.php fixes CS 2015-08-24 09:13:45 +02:00
DescriptorHelper.php Merge branch '2.7' into 2.8 2016-12-27 11:39:57 +01:00
FormatterHelper.php [console] Add truncate method to FormatterHelper 2016-01-25 13:26:46 +01:00
Helper.php Merge branch '2.7' into 2.8 2017-04-03 22:37:06 +02:00
HelperInterface.php remove api tags from code 2015-09-28 19:11:22 +02:00
HelperSet.php Merge branch '2.8' into 3.0 2016-06-29 07:40:00 +02:00
InputAwareHelper.php made {@inheritdoc} annotations consistent across the board 2014-04-16 10:03:46 +02:00
ProcessHelper.php Add more callable type hints 2015-10-05 18:52:37 +02:00
ProgressBar.php [Console] Fix bar width with multilines ProgressBar's format 2017-04-25 10:15:09 -04:00
ProgressIndicator.php Merge branch '2.8' into 3.1 2016-11-03 09:04:31 +01:00
QuestionHelper.php Merge branch '2.8' into 3.2 2017-02-16 06:07:22 -08:00
SymfonyQuestionHelper.php Merge branch '2.7' into 2.8 2016-12-23 17:32:24 +01:00
Table.php Merge branch '2.8' into 3.2 2017-04-04 09:26:27 +02:00
TableCell.php Merge branch '2.7' into 2.8 2017-02-06 13:04:06 +01:00
TableSeparator.php [Console] fixed PHPDoc 2016-06-14 10:22:25 +02:00
TableStyle.php Merge branch '2.7' into 2.8 2016-12-27 11:39:57 +01:00