mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Remove space around code examples.
This commit is contained in:
@@ -48,10 +48,11 @@ else
|
|||||||
{
|
{
|
||||||
|
|
||||||
$code_text = html_entity_decode($code_text, ENT_QUOTES, 'utf-8');
|
$code_text = html_entity_decode($code_text, ENT_QUOTES, 'utf-8');
|
||||||
$highlighted_text = highlight_string($code_text, TRUE);
|
$code_text = trim($code_text);
|
||||||
$highlighted_text = str_replace(array("<code>","</code>"),"",$highlighted_text);
|
// $highlighted_text = highlight_string($code_text, TRUE);
|
||||||
|
// highlighted_text = str_replace(array("<code>","</code>"),"",$highlighted_text);
|
||||||
$divClass = ($parm) ? $parm : 'code_highlight';
|
$divClass = ($parm) ? $parm : 'code_highlight';
|
||||||
$ret = "<pre class='prettyprint linenums ".$tp -> toAttribute($divClass)." code-box {$class}' style='unicode-bidi: embed; direction: ltr'>{$highlighted_text}</pre>";
|
$ret = "<pre class='prettyprint linenums ".$tp -> toAttribute($divClass)." code-box {$class}' style='unicode-bidi: embed; direction: ltr'>".$code_text."</pre>";
|
||||||
}
|
}
|
||||||
$ret = str_replace("[", "[", $ret);
|
$ret = str_replace("[", "[", $ret);
|
||||||
return $ret;
|
return $ret;
|
Reference in New Issue
Block a user