diff --git a/src/Themes/Default/Concerns/DrawsBoxes.php b/src/Themes/Default/Concerns/DrawsBoxes.php index 2b4567ac..0479b771 100644 --- a/src/Themes/Default/Concerns/DrawsBoxes.php +++ b/src/Themes/Default/Concerns/DrawsBoxes.php @@ -74,9 +74,9 @@ protected function longest(array $lines, int $padding = 0): int /** * Pad text ignoring ANSI escape sequences. */ - protected function pad(string $text, int $length): string + protected function pad(string $text, int $length, $char = ' '): string { - $rightPadding = str_repeat(' ', max(0, $length - mb_strwidth($this->stripEscapeSequences($text)))); + $rightPadding = str_repeat($char, max(0, $length - mb_strwidth($this->stripEscapeSequences($text)))); return "{$text}{$rightPadding}"; }