Wed, 30 Nov 2005 01:49:54 +0000
[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;