glFusion / glfusion

glFusion CMS - Advanced Content Management with Style
https://www.glfusion.org
GNU General Public License v2.0
3 stars 0 forks source link

Odd line break before ellipses in COM_truncateHTML() #382

Closed leegarner closed 3 years ago

leegarner commented 4 years ago

Very minor issue, but under some circumstances there may be a line break between the text and ellipses after calling COM_truncateHTML(), which looks odd in the display.

I've tested using rtrim() on line 5935 of lib-common.php and it seems to fix the issue.

   if ($printedLength < $maxLength && $position < strlen($html))
        $retval .= rtrim(substr($html, $position, $maxLength - $printedLength));
mark0263 commented 3 years ago

Implemented with commit cb26a9c