[gaim-migrate @ 14569]

Wed, 30 Nov 2005 01:49:54 +0000

author
Peter Lawler <pidgin@bleeter.id.au>
date
Wed, 30 Nov 2005 01:49:54 +0000
changeset 12267
3ff88b1c0d38
parent 12266
d61e488f64d6
child 12268
55a202e87e18

[gaim-migrate @ 14569]
"This patch fixes formatting in the yahoo profile pages for items grabbed from the tooltip", so sayeth the Bleeter.

committer: Richard Laager <rlaager@pidgin.im>

src/protocols/yahoo/yahoo_profile.c file | annotate | diff | comparison | revisions
--- 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;

mercurial