Trim ws at top of text messages also
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 2 Mar 2009 17:43:34 +0000 (10:43 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 2 Mar 2009 17:43:34 +0000 (10:43 -0700)
imp/lib/Mime/Viewer/plain.php

index 9e97289..1231362 100644 (file)
@@ -27,7 +27,7 @@ class IMP_Horde_Mime_Viewer_plain extends Horde_Mime_Viewer_plain
         $type = 'text/html; charset=' . NLS::getCharset();
 
         // Trim extra whitespace in the text.
-        $text = rtrim($this->_mimepart->getContents());
+        $text = trim($this->_mimepart->getContents());
         if ($text == '') {
             return array(
                 $mime_id => array(