Fix superfluous ws for some headers.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Mar 2010 05:28:52 +0000 (22:28 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Mar 2010 06:17:28 +0000 (23:17 -0700)
framework/Mime/lib/Horde/Mime/Headers.php

index 2bcffde..7e957e6 100644 (file)
@@ -101,7 +101,7 @@ class Horde_Mime_Headers
                 if (empty($options['nowrap'])) {
                     /* Remove any existing linebreaks and wrap the line. */
                     $header_text = $ob['header'] . ': ';
-                    $text = substr(wordwrap($header_text . strtr(trim($text), array("\r" => '', "\n" => '')), 76, $this->_eol . ' '), strlen($header_text));
+                    $text = ltrim(substr(wordwrap($header_text . strtr(trim($text), array("\r" => '', "\n" => '')), 76, $this->_eol . ' '), strlen($header_text)));
                 }
 
                 $val[$key] = $text;