changeset 12267:df93ed932b3a

[gaim-migrate @ 14569] "This patch fixes formatting in the yahoo profile pages for items grabbed from the tooltip", so sayeth the Bleeter. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 30 Nov 2005 01:49:54 +0000
parents 0e467757b57a
children deb955f7ebb7
files src/protocols/yahoo/yahoo_profile.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo_profile.c	Wed Nov 30 01:04:45 2005 +0000
+++ b/src/protocols/yahoo/yahoo_profile.c	Wed Nov 30 01:49:54 2005 +0000
@@ -663,8 +663,12 @@
 		}
 		#endif
 		if (statustext) {
-			g_string_append_printf(s, "%s<br>", statustext);
+			char *tmp;
+			g_strstrip(statustext);
+			tmp = gaim_strreplace(statustext, "\n", "<br>");
 			g_free(statustext);
+			g_string_append_printf(s, "%s<br>", tmp);
+			g_free(tmp);
 		}
 		if ((f = yahoo_friend_find(info_data->gc, b->name))) {
 			const char *ip;