Not sure what you are seeing. The code is as follows:
`
function truncate_string($string, $length, $elipsis='...') {
if (strlen($string) > $length) {
$pos = strpos($string, ' ', $length);
if ($pos === FALSE) return substr($string, 0, $length) . $elipsis;
return substr($string, 0, $pos) . $elipsis;
}
return $string;
}
`
This will find the last space prior to the designated length and truncate there or it will chop at the lenght, so I do not see how the example you show could have occurred.