diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-06-08 06:54:34 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-06-08 06:54:34 +0000 |
| commit | b3a6be9f0bfef1cf38351dc1901c5c300b77045a (patch) | |
| tree | 99ce162856658671cf3286b37643d9e99e0207f7 /roundcubemail | |
| parent | 318929b4fb8a002be3075562a2c16f2f7759a903 (diff) | |
- fix rc_wordwrap() (#1485909)
git-svn-id: https://svn.roundcube.net/trunk@2622 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
| -rw-r--r-- | roundcubemail/program/include/rcube_shared.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc index 9278654e3..1b2fe970f 100644 --- a/roundcubemail/program/include/rcube_shared.inc +++ b/roundcubemail/program/include/rcube_shared.inc @@ -425,7 +425,7 @@ function rc_wordwrap($string, $width=75, $break="\n", $cut=false) if ($newlen <= $width) { $string .= ($len ? ' ' : '').$line; - $len += ($len ? 1 : 0) + $l; + $len += (1 + $l); } else { if ($l > $width) { if ($cut) { |
