Skip to content

Commit 8e9359c

Browse files
Merge pull request sebastianbergmann#115 from jakoch/master
delete last br before code closing tag (code highlighter)
2 parents 463e816 + d3f5ded commit 8e9359c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build/scripts/highlight.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -442,13 +442,15 @@ function highlight($string)
442442
"\r",
443443
"\n",
444444
'<code>&nbsp;<br /><span class="default">&lt;?php',
445-
'?&gt;</span><br />&nbsp;<br />&nbsp;<br />'
445+
'?&gt;</span><br />&nbsp;<br />&nbsp;<br />',
446+
'<br /></code>'
446447
),
447448
array(
448449
'',
449450
'',
450451
'<code><span class="default">&lt;?php',
451-
'?&gt;</span>'
452+
'?&gt;</span>',
453+
'</code>'
452454
),
453455
$highlighter->toHtml(TRUE, FALSE, NULL, FALSE)
454456
);

0 commit comments

Comments
 (0)