Loading sources/comcode_renderer.php +4 −4 Original line number Diff line number Diff line Loading @@ -784,19 +784,19 @@ function _do_tags_comcode($tag, $attributes, $embed, $comcode_dangerous, $pass_i $tag = in_array($type, array('circle', 'disc', 'square')) ? 'ul' : 'ol'; $temp_tpl->attach('<' . $tag . ' style="list-style-type: ' . $type . '">'); foreach ($parts as $i => $part) { if (($i == 0) && (str_replace(array(' ', '<br />', ' '), array('', '', ''), trim($part)) == '')) { if (($i == 0) && (cms_trim($part, true) == '')) { continue; } $temp_tpl->attach('<li>' . cms_preg_replace_safe('#\<br /\>(\ |\s)*$#D', '', cms_preg_replace_safe('#^\<br /\>(\ |\s)*#D', '', $part)) . '</li>'); $temp_tpl->attach('<li>' . cms_trim($part, true) . '</li>'); } $temp_tpl->attach('</' . $tag . '>'); } else { $temp_tpl->attach('<ul>'); foreach ($parts as $i => $part) { if (($i == 0) && (str_replace(array(' ', '<br />', ' '), array('', '', ''), trim($part)) == '')) { if (($i == 0) && (cms($part, true) == '')) { continue; } $temp_tpl->attach('<li>' . cms_preg_replace_safe('#\<br /\>(\ |\s)*$#D', '', cms_preg_replace_safe('#^\<br /\>(\ |\s)*#D', '', $part)) . '</li>'); $temp_tpl->attach('<li>' . cms_trim($part, true) . '</li>'); } $temp_tpl->attach('</ul>'); } Loading Loading
sources/comcode_renderer.php +4 −4 Original line number Diff line number Diff line Loading @@ -784,19 +784,19 @@ function _do_tags_comcode($tag, $attributes, $embed, $comcode_dangerous, $pass_i $tag = in_array($type, array('circle', 'disc', 'square')) ? 'ul' : 'ol'; $temp_tpl->attach('<' . $tag . ' style="list-style-type: ' . $type . '">'); foreach ($parts as $i => $part) { if (($i == 0) && (str_replace(array(' ', '<br />', ' '), array('', '', ''), trim($part)) == '')) { if (($i == 0) && (cms_trim($part, true) == '')) { continue; } $temp_tpl->attach('<li>' . cms_preg_replace_safe('#\<br /\>(\ |\s)*$#D', '', cms_preg_replace_safe('#^\<br /\>(\ |\s)*#D', '', $part)) . '</li>'); $temp_tpl->attach('<li>' . cms_trim($part, true) . '</li>'); } $temp_tpl->attach('</' . $tag . '>'); } else { $temp_tpl->attach('<ul>'); foreach ($parts as $i => $part) { if (($i == 0) && (str_replace(array(' ', '<br />', ' '), array('', '', ''), trim($part)) == '')) { if (($i == 0) && (cms($part, true) == '')) { continue; } $temp_tpl->attach('<li>' . cms_preg_replace_safe('#\<br /\>(\ |\s)*$#D', '', cms_preg_replace_safe('#^\<br /\>(\ |\s)*#D', '', $part)) . '</li>'); $temp_tpl->attach('<li>' . cms_trim($part, true) . '</li>'); } $temp_tpl->attach('</ul>'); } Loading