From a4d50d7f304f3b52720033dd518e84bfc0b6f0ca Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 30 Jul 2008 14:19:31 +0000 Subject: [PATCH] trying to improve linebreak behavior while importing mails. --- infolog/inc/class.uiinfolog.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infolog/inc/class.uiinfolog.inc.php b/infolog/inc/class.uiinfolog.inc.php index 59ac269878..ffe8a3f4d5 100644 --- a/infolog/inc/class.uiinfolog.inc.php +++ b/infolog/inc/class.uiinfolog.inc.php @@ -1384,7 +1384,9 @@ class uiinfolog reset($newBody); while(list($key,$value) = @each($newBody)) { - $value .= "\n"; + if (trim($value) != '') { + if ($value != "\r") $value .= "\n"; + } $bodyAppend = $bofelamimail->wordwrap($value,75,"\n"); $message .= $bodyAppend; }