mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 01:35:12 +00:00
This was the reason for the large line widths - an extra linefeed after each li element
This commit is contained in:
parent
fa48de33c2
commit
854c23a751
2 changed files with 1 additions and 4 deletions
|
@ -2908,7 +2908,7 @@ function text_highlight($s,$lang) {
|
||||||
$hl = Text_Highlighter::factory($lang);
|
$hl = Text_Highlighter::factory($lang);
|
||||||
$hl->setRenderer($renderer);
|
$hl->setRenderer($renderer);
|
||||||
$o = $hl->highlight($s);
|
$o = $hl->highlight($s);
|
||||||
$o = str_replace(" "," ",$o);
|
$o = str_replace([" ","\n"],[" ",''],$o);
|
||||||
|
|
||||||
if($tag_added) {
|
if($tag_added) {
|
||||||
$b = substr($o,0,strpos($o,'<li>'));
|
$b = substr($o,0,strpos($o,'<li>'));
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
.hl-main ol {
|
.hl-main ol {
|
||||||
line-height: 1.0;
|
line-height: 1.0;
|
||||||
}
|
}
|
||||||
.hl-main li {
|
|
||||||
}
|
|
||||||
|
|
||||||
.hl-default {
|
.hl-default {
|
||||||
color: Black;
|
color: Black;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue