Mercurial > pidgin
comparison src/protocols/yahoo/yahoo_profile.c @ 12876:2c3ee0eff94b
[gaim-migrate @ 15228]
Andrea Canciani fixed yahoo "Get Info" to not have unnecessary spaces before and after the content.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sat, 14 Jan 2006 17:43:32 +0000 |
parents | b4d2bba86f65 |
children | 82e918444965 |
comparison
equal
deleted
inserted
replaced
12875:7a432c828225 | 12876:2c3ee0eff94b |
---|---|
809 p = strstr(url_text, "Adult Profiles Warning Message"); | 809 p = strstr(url_text, "Adult Profiles Warning Message"); |
810 if (!p) { | 810 if (!p) { |
811 p = strstr(url_text, "Adult Content Warning"); /* TITLE element */ | 811 p = strstr(url_text, "Adult Content Warning"); /* TITLE element */ |
812 } | 812 } |
813 if (p) { | 813 if (p) { |
814 g_snprintf(buf, 1024, "<html><body>%s<b>%s</b><br><br>\n" | 814 g_snprintf(buf, 1024, "<html><body>%s<b>%s</b><br><br>" |
815 "%s<br><a href=\"%s\">%s</a></body></html>", | 815 "%s<br><a href=\"%s\">%s</a></body></html>", |
816 tooltip_text, | 816 tooltip_text, |
817 _("Sorry, profiles marked as containing adult content " | 817 _("Sorry, profiles marked as containing adult content " |
818 "are not supported at this time."), | 818 "are not supported at this time."), |
819 _("If you wish to view this profile, " | 819 _("If you wish to view this profile, " |
1191 g_string_append_printf(s, _("<b>%s:</b> "), _("Profile URL")); | 1191 g_string_append_printf(s, _("<b>%s:</b> "), _("Profile URL")); |
1192 g_string_append_printf(s, "<br><a href=\"%s\">%s</a><br>", | 1192 g_string_append_printf(s, "<br><a href=\"%s\">%s</a><br>", |
1193 profile_url_text, profile_url_text); | 1193 profile_url_text, profile_url_text); |
1194 | 1194 |
1195 /* finish off the html at the end */ | 1195 /* finish off the html at the end */ |
1196 g_string_append(s, "</body></html>\n"); | 1196 g_string_append(s, "</body></html>"); |
1197 g_free(stripped); | 1197 g_free(stripped); |
1198 | 1198 |
1199 /* Put the Yahoo! ID, nickname, idle time, and status message in */ | 1199 /* Put the Yahoo! ID, nickname, idle time, and status message in */ |
1200 g_string_prepend(s, tooltip_text); | 1200 g_string_prepend(s, tooltip_text); |
1201 | 1201 |
1202 /* finish off the html at the beginning */ | 1202 /* finish off the html at the beginning */ |
1203 g_string_prepend(s, "<html><body>\n"); | 1203 g_string_prepend(s, "<html><body>"); |
1204 | 1204 |
1205 /* show it to the user */ | 1205 /* show it to the user */ |
1206 gaim_notify_userinfo(info_data->gc, info_data->name, | 1206 gaim_notify_userinfo(info_data->gc, info_data->name, |
1207 s->str, NULL, NULL); | 1207 s->str, NULL, NULL); |
1208 | 1208 |