Skip to content

Commit bd708ca

Browse files
committed
fix: wrong visual tabSize on browser
" &nbsp;" gives wrong visual result sometimes while "&nbsp; " seems to be good always. Signed-off-by: Jack Cherng <[email protected]>
1 parent 397fb17 commit bd708ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renderer/Html/AbstractHtml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ protected function htmlFixSpaces(string $string): string
317317
static function (array $matches): string {
318318
$count = \strlen($matches[0]);
319319

320-
return str_repeat(' &nbsp;', $count >> 1) . ($count & 1 ? ' ' : '');
320+
return str_repeat('&nbsp; ', $count >> 1) . ($count & 1 ? ' ' : '');
321321
},
322322
$string,
323323
);

0 commit comments

Comments
 (0)