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

Skip to content < 65F8 /span>

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
< 4126 td data-grid-cell-id="diff-a016121f5b0b9bd1b17bff1c650034b0fddb954b79637126dd294fc8875a7609-90-90-1" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">90
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

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

0 commit comments

Comments
 (0)
0