8000 [Console] SymfonyStyle: fix block rpadding when escaping '<' · symfony/symfony@80fc341 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80fc341

Browse files
committed
[Console] SymfonyStyle: fix block rpadding when escaping '<'
1 parent e60f715 commit 80fc341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Style/SymfonyStyle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function block($messages, $type = null, $style = null, $prefix = ' ', $pa
8585

8686
foreach ($lines as &$line) {
8787
$line = sprintf('%s%s', $prefix, $line);
88-
$line .= str_repeat(' ', $this->lineLength - Helper::strlen($line));
88+
$line .= str_repeat(' ', $this->lineLength - Helper::strlenWithoutDecoration($this->getFormatter(), $line));
8989

9090
if ($style) {
9191
$line = sprintf('<%s>%s</>', $style, $line);

0 commit comments

Comments
 (0)
0