From aa2fb2233859e5311e984fb2495fa8769abfb632 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 25 Sep 2023 12:22:14 +0200 Subject: [PATCH] BlueScreen: highlightLine() produces extra --- src/Tracy/BlueScreen/BlueScreen.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tracy/BlueScreen/BlueScreen.php b/src/Tracy/BlueScreen/BlueScreen.php index acc1d6bc0..8fdcacbea 100644 --- a/src/Tracy/BlueScreen/BlueScreen.php +++ b/src/Tracy/BlueScreen/BlueScreen.php @@ -358,7 +358,7 @@ public static function highlightPhp(string $source, int $line, int $lines = 15, $out = $source[0]; // $source = str_replace('
', "\n", $source[1]); $out .= static::highlightLine($source, $line, $lines, $column); - $out = str_replace(' ', ' ', $out); + $out = str_replace(' ', ' ', $out) . '
'; return "
$out
"; } @@ -412,7 +412,7 @@ public static function highlightLine(string $html, int $line, int $lines = 15, i } } - $out .= str_repeat('', $spans) . ''; + $out .= str_repeat('', $spans); return $out; }