diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-05-23 08:59:27 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-05-23 09:00:41 +0200 |
commit | 20df06be5debd2dcfb871f0da9c3eef9d878a6a5 (patch) | |
tree | 0431a4c12874a0b7f1060fee678e56f1a85e7934 /program/steps/mail/func.inc | |
parent | 656005f056030b278aa96047f405bb802644a516 (diff) |
Fix another text wrapping issue (wrong handling of long unwrappable lines)
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r-- | program/steps/mail/func.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 59e0dbaa0..0845bf738 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1532,11 +1532,11 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null, /** * Wrap text to a given number of characters per line * but respect the mail quotation of replies messages (>). - * Finally add another quotation level by prpending the lines + * Finally add another quotation level by prepending the lines * with > * * @param string Text to wrap - * @param int The line width + * @param int The line width * @return string The wrapped text */ function rcmail_wrap_and_quote($text, $length = 72) @@ -1552,7 +1552,7 @@ function rcmail_wrap_and_quote($text, $length = 72) $line = '>' . rtrim($line); else if (mb_strlen($line) > $max) { $newline = ''; - foreach(explode("\n", rc_wordwrap($line, $length - 2)) as $l) { + foreach (explode("\n", rc_wordwrap($line, $length - 2)) as $l) { if (strlen($l)) $newline .= '> ' . $l . "\n"; else |