[Console] SymfonyStyle: fix block rpadding when escaping '<'
This commit is contained in:
parent
e60f715920
commit
80fc341747
@ -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);
|
||||
|
Reference in New Issue
Block a user