diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 1aff133b92..8d1c18e9ff 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -1939,48 +1939,9 @@ class infolog_ui { Framework::window_close(lang('Permission denied!')); } - foreach(array('info_subject', 'info_des') as $key) - { - if(!isset($content[$key]) || strlen($content[$key]) < 75) - { - continue; - } - $contlines = explode("\n", $content[$key]); - $clarray = array(); - foreach ($contlines as &$line) - { - if(strlen($line) < 75) - { - $clarray[] = $line; - continue; - } - $cont = explode(' ', $line); - $ckarray = array(); - foreach($cont as &$word) - { - // set blank behind all , and . if words are too long, apply wordwrap afterwards to make sure we get - if (strlen($word)>75) - { - $buff = Api\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; - } - $line = join(' ',$ckarray); - unset($ckarray); - $clarray[] = $line; - } - $content[$key] = join("\n",$clarray); - unset($clarray); - } if (is_numeric($_REQUEST['cat_id'])) { - $content['info_cat'] = (int) $_REQUEST['cat_id']; + $content['info_cat'] = (int)$_REQUEST['cat_id']; } if (!$content) { diff --git a/infolog/templates/default/app.css b/infolog/templates/default/app.css index 37e88e1d27..7ab8c9aaaa 100644 --- a/infolog/templates/default/app.css +++ b/infolog/templates/default/app.css @@ -47,6 +47,10 @@ tr.infolog_rowHasParent > td:first-child { .et2_nextmatch .egwGridView_grid tr td div.et2_vbox .infoDes a{ display: inline-table; } +/* break in words if necessary for description */ +#infolog-index_nm div.infoDes > span{ + overflow-wrap: break-word; +} /* Put line break for the first column*/ #infolog-index .egwGridView_grid .et2_hbox.et2_box_widget.infolog_CompletedClmn { white-space: normal; diff --git a/infolog/templates/pixelegg/app.css b/infolog/templates/pixelegg/app.css index 13afb931de..58c69484a1 100755 --- a/infolog/templates/pixelegg/app.css +++ b/infolog/templates/pixelegg/app.css @@ -115,6 +115,10 @@ tr.infolog_rowHasParent > td:first-child { .et2_nextmatch .egwGridView_grid tr td div.et2_vbox .infoDes a { display: inline-table; } +/* break in words if necessary for description */ +#infolog-index_nm div.infoDes > span { + overflow-wrap: break-word; +} /* Put line break for the first column*/ #infolog-index .egwGridView_grid .et2_hbox.et2_box_widget.infolog_CompletedClmn { white-space: normal;