Fix rendering of text parts in popup windows
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 18 Jan 2011 06:26:16 +0000 (23:26 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 18 Jan 2011 06:26:16 +0000 (23:26 -0700)
imp/lib/Mime/Viewer/Plain.php

index 4523a0a..119dbbb 100644 (file)
@@ -34,7 +34,8 @@ class IMP_Mime_Viewer_Plain extends Horde_Mime_Viewer_Plain
         $item = reset($data);
         Horde::startBuffer();
         Horde::includeStylesheetFiles();
-        $item['data'] = '<html><head>' . Horde::endBuffer() . '</head><body><tt>' . $item['data'] . '</tt></body></html>';
+        $item['data'] = '<html><head>' . Horde::endBuffer() . '</head><body>' . $item['data'] . '</body></html>';
+        $data[key($data)] = $item;
         return $data;
     }