Browse Source

Fixed silly typo, now you can read your mail. :-)

Tyler Akins 25 years ago
parent
commit
c4651cc100
1 changed files with 2 additions and 1 deletions
  1. 2 1
      functions/strings.php

+ 2 - 1
functions/strings.php

@@ -49,12 +49,13 @@
    // you do character translation.
    // you do character translation.
    // Specifically, &#039 comes up as 5 characters instead of 1.
    // Specifically, &#039 comes up as 5 characters instead of 1.
    function sqWordWrap(&$line, $wrap) {
    function sqWordWrap(&$line, $wrap) {
-      preg_match("/^([\s>]+)([^\s>].*)/", $line, $regs);
+      preg_match("/^([\s>]*)([^\s>].*)$/", $line, $regs);
       $beginning_spaces = $regs[1];
       $beginning_spaces = $regs[1];
       $words = explode(" ", $regs[2]);
       $words = explode(" ", $regs[2]);
 
 
       $i = 0;
       $i = 0;
       $line = $beginning_spaces;
       $line = $beginning_spaces;
+      
       if (count($words) > 1) {
       if (count($words) > 1) {
          while ($i < count($words)) {
          while ($i < count($words)) {
             // Force one word to be on a line (minimum)
             // Force one word to be on a line (minimum)