Updating branch refs/heads/master
         to 72a49de0022da983c5163cbe03d8223adbc9a20b (commit)
       from 3fc1aa363706861ae7a58b6b0816706a0d5241c6 (commit)

commit 72a49de0022da983c5163cbe03d8223adbc9a20b
Author: Christian Dywan <[email protected]>
Date:   Mon Feb 21 18:47:37 2011 +0100

    Terminate lines of text attachments with \n
    
    Email messages and patches are text, but not formatted like
    primary message text parts.

 postler/postler-content.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index bed6d20..dee2f7c 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -919,8 +919,12 @@ public class Postler.Content : WebKit.WebView {
                     message_part.body.append (line);
                     if (content_encoding == "quoted-printable" && 
line.has_suffix ("="))
                         message_part.body.truncate (message_part.body.len - 1);
+                    else if (message_part.plain_text)
+                        message_part.body.append ("<br>");
+                    else if (mime_type_is_text (message_part.mime_type))
+                        message_part.body.append ("\n");
                     else
-                        message_part.body.append (message_part.plain_text ? 
"<br>" : " ");
+                        message_part.body.append (" ");
                 }
             }
         } catch (GLib.Error error) {
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to