[empathy] Display text in verbatim (#625745)



commit 3055c76a94c9628ef30da3bcdf1ca894cb671796
Author: Vitaly Minko <vitaly mink gmail com>
Date:   Thu Nov 11 13:32:45 2010 +0100

    Display text in verbatim (#625745)

 libempathy-gtk/empathy-theme-adium.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 8c6301e..b9b6169 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]