From e0858036ddb30d2abad7c775ec48e3442bbc6769 Mon Sep 17 00:00:00 2001 From: jmunro Date: Thu, 9 May 2002 15:37:11 +0000 Subject: [PATCH] fix for bug #552961, word wrapping problems. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2810 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 2 +- src/compose.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/strings.php b/functions/strings.php index c7c6060f..23d0dcc4 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -64,7 +64,7 @@ function sqWordWrap(&$line, $wrap) { /* Go to the next line if we have more to process */ if ($i < count($words)) { - $line .= "\n" . $beginning_spaces; + $line .= "\n"; } } } diff --git a/src/compose.php b/src/compose.php index 1816da87..aa3f5f7e 100644 --- a/src/compose.php +++ b/src/compose.php @@ -153,8 +153,8 @@ if (isset($send)) { if (strlen($line) <= $editor_size + 1) { $newBody .= $line . "\n"; } else { - sqWordWrap($line, $editor_size) . "\n"; - $newBody .= $line; + sqWordWrap($line, $editor_size); + $newBody .= $line . "\n"; } } $body = $newBody; -- 2.25.1