Skip to content

Commit

Permalink
[Console] SymfonyStyle: fix block rpadding when escaping '<'
Browse files Browse the repository at this point in the history
  • Loading branch information
ogizanagi committed May 12, 2015
1 parent e60f715 commit 80fc341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Style/SymfonyStyle.php
Expand Up @@ -85,7 +85,7 @@ public function block($messages, $type = null, $style = null, $prefix = ' ', $pa

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);
Expand Down

0 comments on commit 80fc341

Please sign in to comment.