From 80fc3417477f942b51b371e926f744213a98c08a Mon Sep 17 00:00:00 2001 From: ogizanagi Date: Sun, 10 May 2015 20:40:54 +0200 Subject: [PATCH] [Console] SymfonyStyle: fix block rpadding when escaping '<' --- src/Symfony/Component/Console/Style/SymfonyStyle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Console/Style/SymfonyStyle.php b/src/Symfony/Component/Console/Style/SymfonyStyle.php index 1ccccc9df3..b3508de82d 100644 --- a/src/Symfony/Component/Console/Style/SymfonyStyle.php +++ b/src/Symfony/Component/Console/Style/SymfonyStyle.php @@ -85,7 +85,7 @@ class SymfonyStyle extends OutputStyle foreach ($lines as &$line) { $line = sprintf('%s%s', $prefix, $line); - $line .= str_repeat(' ', $this->lineLength - Helper::strlen($line)); + $line .= str_repeat(' ', $this->lineLength - Helper::strlenWithoutDecoration($this->getFormatter(), $line)); if ($style) { $line = sprintf('<%s>%s', $style, $line);