aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-15 19:59:30 -0700
committerredmatrix <git@macgirvin.com>2016-06-15 19:59:30 -0700
commit854c23a751bc8a24e4c43e2d16175bcef6021663 (patch)
treea6afb28c64d563fd26232edc87e80a339ae707e0 /include
parentfa48de33c2f6cefbac8bfec7cde75b75390d5f39 (diff)
downloadvolse-hubzilla-854c23a751bc8a24e4c43e2d16175bcef6021663.tar.gz
volse-hubzilla-854c23a751bc8a24e4c43e2d16175bcef6021663.tar.bz2
volse-hubzilla-854c23a751bc8a24e4c43e2d16175bcef6021663.zip
This was the reason for the large line widths - an extra linefeed after each li element
Diffstat (limited to 'include')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 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(" ","&nbsp;&nbsp;&nbsp;&nbsp;",$o);
+ $o = str_replace([" ","\n"],["&nbsp;&nbsp;&nbsp;&nbsp;",''],$o);
if($tag_added) {
$b = substr($o,0,strpos($o,'<li>'));