diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 5ec9a3562b..3d154fd352 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -1048,9 +1048,13 @@ class infolog_ui // set blank behind all , and . if words are too long, apply wordwrap afterwards to make sure we get if (strlen($word)>75) { - if (!(strpos($word,',')===false) && strpos($word,', ')===false) $word = str_replace(',',', ',$word); - if (!(strpos($word,'.')===false) && strpos($word,'. ')===false) $word = str_replace('.','. ',$word); - $word = wordwrap($word, 75, ' ', true); + $buff = html::activate_links($word); + if (strlen($buff) == strlen($word)) // no links -> try to break overlong words + { + if (!(strpos($word,',')===false) && strpos($word,', ')===false) $word = str_replace(',',', ',$word); + if (!(strpos($word,'.')===false) && strpos($word,'. ')===false) $word = str_replace('.','. ',$word); + $word = wordwrap($word, 75, ' ', true); + } } $ckarray[] =$word; }