Skip to content

Commit d3f5ded

Browse files
committed
delete last br before code closing tag (code highlighter)
toHTML() method adds a br to every line (line 298) this strips the br from the last line
1 parent 463e816 commit d3f5ded

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)