This was the reason for the large line widths - an extra linefeed after each li element

This commit is contained in:
redmatrix
2016-06-15 19:59:30 -07:00
parent fa48de33c2
commit 854c23a751
2 changed files with 1 additions and 4 deletions

View File

@@ -2908,7 +2908,7 @@ function text_highlight($s,$lang) {
$hl = Text_Highlighter::factory($lang);
$hl->setRenderer($renderer);
$o = $hl->highlight($s);
$o = str_replace(" ","    ",$o);
$o = str_replace([" ","\n"],["    ",''],$o);
if($tag_added) {
$b = substr($o,0,strpos($o,'<li>'));