From 854c23a751bc8a24e4c43e2d16175bcef6021663 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 15 Jun 2016 19:59:30 -0700 Subject: This was the reason for the large line widths - an extra linefeed after each li element --- include/text.php | 2 +- library/Text_Highlighter/sample.css | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/text.php b/include/text.php index 7b43ece43..ec42c650d 100644 --- a/include/text.php +++ b/include/text.php @@ -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,'
  • ')); diff --git a/library/Text_Highlighter/sample.css b/library/Text_Highlighter/sample.css index 627f2510b..735af0fd4 100644 --- a/library/Text_Highlighter/sample.css +++ b/library/Text_Highlighter/sample.css @@ -1,9 +1,6 @@ .hl-main ol { line-height: 1.0; } -.hl-main li { -} - .hl-default { color: Black; } -- cgit v1.2.3