Skip to content

Commit c7f7be1

Browse files
committed
ICL: Context displaying fixed.
1 parent d36f4b5 commit c7f7be1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Log/HtmlFormatter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ protected function composeRow($header, $body = ' ')
9999
$body = e($body);
100100

101101
if ($header == 'Context') {
102-
$body = "<pre>{$body}</pre>";
102+
$body = str_replace(' ', '&nbsp;', $body);
103+
$body = nl2br($body);
103104
}
104105

105106
return "<tr class='details-row'>

0 commit comments

Comments
 (0)