]> git.0d.be Git - empathy.git/commitdiff
Display text in verbatim (#625745)
authorVitaly Minko <vitaly.mink@gmail.com>
Thu, 11 Nov 2010 12:32:45 +0000 (13:32 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 11 Nov 2010 12:32:45 +0000 (13:32 +0100)
libempathy-gtk/empathy-theme-adium.c

index 8c6301ee9a469f5d24b7077195ceff761610c4e8..b9b6169efd5bb3d71aa4f8e7f41afe7976689b44 100644 (file)
@@ -272,6 +272,12 @@ theme_adium_parse_body (const gchar *text)
 
        g_object_unref (gsettings);
 
+       /* Wrap body in order to make tabs and multiple spaces displayed
+        * properly. See bug #625745. */
+       g_string_prepend (string, "<div style=\"display: inline; "
+                                              "white-space: pre-wrap\"'>");
+       g_string_append (string, "</div>");
+
        return g_string_free (string, FALSE);
 }