diff options
author | Vitaly Minko <vitaly.mink@gmail.com> | 2010-11-11 20:32:45 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-11-11 20:32:45 +0800 |
commit | 3055c76a94c9628ef30da3bcdf1ca894cb671796 (patch) | |
tree | 4f28f7994002ebf7644e86b7fc4b50188490c821 /libempathy-gtk | |
parent | c6cd722328a112e8f4b015ca57ffe8dc72f50cd8 (diff) | |
download | gsoc2013-empathy-3055c76a94c9628ef30da3bcdf1ca894cb671796.tar gsoc2013-empathy-3055c76a94c9628ef30da3bcdf1ca894cb671796.tar.gz gsoc2013-empathy-3055c76a94c9628ef30da3bcdf1ca894cb671796.tar.bz2 gsoc2013-empathy-3055c76a94c9628ef30da3bcdf1ca894cb671796.tar.lz gsoc2013-empathy-3055c76a94c9628ef30da3bcdf1ca894cb671796.tar.xz gsoc2013-empathy-3055c76a94c9628ef30da3bcdf1ca894cb671796.tar.zst gsoc2013-empathy-3055c76a94c9628ef30da3bcdf1ca894cb671796.zip |
Display text in verbatim (#625745)
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | 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 8c6301ee9..b9b6169ef 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); } |