Mercurial > pidgin.yaz
diff src/protocols/yahoo/yahoo_profile.c @ 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 | 52f27ffe68a5 |
children | bfc0a52f0cf4 |
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;