From 30f64711d64877207bebea50f406d3456f630d7e Mon Sep 17 00:00:00 2001 From: fidian Date: Wed, 11 Oct 2000 12:55:47 +0000 Subject: [PATCH] Fixed silly typo, now you can read your mail. :-) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@789 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/strings.php b/functions/strings.php index 5d450134..6d82b88d 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -49,12 +49,13 @@ // you do character translation. // Specifically, ' comes up as 5 characters instead of 1. function sqWordWrap(&$line, $wrap) { - preg_match("/^([\s>]+)([^\s>].*)/", $line, $regs); + preg_match("/^([\s>]*)([^\s>].*)$/", $line, $regs); $beginning_spaces = $regs[1]; $words = explode(" ", $regs[2]); $i = 0; $line = $beginning_spaces; + if (count($words) > 1) { while ($i < count($words)) { // Force one word to be on a line (minimum) -- 2.25.1