Project

General

Profile

Bug #22471 ยป 14132_trunk.patch

Administrator Admin, 2010-05-11 15:20

View differences:

t3lib/class.t3lib_stdgraphic.php (working copy)
protected function getWordPairsForLineBreak($string) {
$wordPairs = array();
$wordsArray = preg_split('#([ -.,!:]+)#', $string, -1, PREG_SPLIT_DELIM_CAPTURE);
$wordsArray = preg_split('#([- .,!:]+)#', $string, -1, PREG_SPLIT_DELIM_CAPTURE);
$wordsCount = count($wordsArray);
for ($index=0; $index < $wordsCount; $index+= 2) {
$wordPairs[] = $wordsArray[$index] . $wordsArray[$index + 1];
    (1-1/1)