mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 23:09:13 +01:00
attempt to improve overlong-word-control behavior
This commit is contained in:
parent
78011ed719
commit
b9192c0f4c
@ -1747,7 +1747,16 @@ else
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$cont = explode(' ', $content[$key]);
|
$contlines = explode("\n", $content[$key]);
|
||||||
|
$clarray = array();
|
||||||
|
foreach ($contlines as &$line)
|
||||||
|
{
|
||||||
|
if(strlen($line) < 75)
|
||||||
|
{
|
||||||
|
$clarray[] = $line;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$cont = explode(' ', $line);
|
||||||
$ckarray = array();
|
$ckarray = array();
|
||||||
foreach($cont as &$word)
|
foreach($cont as &$word)
|
||||||
{
|
{
|
||||||
@ -1764,8 +1773,12 @@ else
|
|||||||
}
|
}
|
||||||
$ckarray[] =$word;
|
$ckarray[] =$word;
|
||||||
}
|
}
|
||||||
$content[$key] = join(' ',$ckarray);
|
$line = join(' ',$ckarray);
|
||||||
unset($ckarray);
|
unset($ckarray);
|
||||||
|
$clarray[] = $line;
|
||||||
|
}
|
||||||
|
$content[$key] = join("\n",$clarray);
|
||||||
|
unset($clarray);
|
||||||
}
|
}
|
||||||
if (is_numeric($_REQUEST['cat_id']))
|
if (is_numeric($_REQUEST['cat_id']))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user