aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/text.php')
-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(" ","    ",$o);
+ $o = str_replace([" ","\n"],["    ",''],$o);
if($tag_added) {
$b = substr($o,0,strpos($o,'<li>'));