gaim/gaim

a50ea67a7fb9
Parents d546bf043ebf
Children 06305558e827
A guy named Martin noticed that if you read the info of an ICQ user,
and they have more than one email address listed, the mailto link
for all addresses after the first are missing a colon.

And I also removed some no-longer-needed \n's that were causing some
extra white space in the output. I'm glad those aren't needed--yay
for improvements to gtkimhtml.
--- a/src/protocols/oscar/oscar.c Tue Mar 08 19:03:38 2005 -0500
+++ b/src/protocols/oscar/oscar.c Thu Mar 10 23:12:55 2005 -0500
@@ -5112,7 +5112,7 @@
int i;
for (i = 0; i < info->numaddresses; i++) {
if (info->email2[i] && info->email2[i][0] && (utf8 = gaim_utf8_try_convert(info->email2[i]))) {
- g_string_append_printf(str, "\n<br><b>%s:</b> <a href=\"mailto%s\">%s</a>", _("Email Address"), utf8, utf8);
+ g_string_append_printf(str, "\n<br><b>%s:</b> <a href=\"mailto:%s\">%s</a>", _("Email Address"), utf8, utf8);
g_free(utf8);
}
}
@@ -5142,14 +5142,14 @@
g_string_append_printf(str, "<hr><b>%s:</b><br>%s", _("Additional Information"), utf8);
g_free(utf8);
}
- g_string_append_printf(str, "<hr>\n");
+ g_string_append_printf(str, "<hr>");
if ((info->homeaddr && (info->homeaddr[0])) || (info->homecity && info->homecity[0]) || (info->homestate && info->homestate[0]) || (info->homezip && info->homezip[0])) {
g_string_append_printf(str, "<b>%s:</b>", _("Home Address"));
oscar_string_append(str, "\n<br>", _("Address"), info->homeaddr);
oscar_string_append(str, "\n<br>", _("City"), info->homecity);
oscar_string_append(str, "\n<br>", _("State"), info->homestate);
oscar_string_append(str, "\n<br>", _("Zip Code"), info->homezip);
- g_string_append_printf(str, "\n<hr>\n");
+ g_string_append_printf(str, "\n<hr>");
}
if ((info->workaddr && info->workaddr[0]) || (info->workcity && info->workcity[0]) || (info->workstate && info->workstate[0]) || (info->workzip && info->workzip[0])) {
g_string_append_printf(str, "<b>%s:</b>", _("Work Address"));
@@ -5157,7 +5157,7 @@
oscar_string_append(str, "\n<br>", _("City"), info->workcity);
oscar_string_append(str, "\n<br>", _("State"), info->workstate);
oscar_string_append(str, "\n<br>", _("Zip Code"), info->workzip);
- g_string_append_printf(str, "\n<hr>\n");
+ g_string_append_printf(str, "\n<hr>");
}
if ((info->workcompany && info->workcompany[0]) || (info->workdivision && info->workdivision[0]) || (info->workposition && info->workposition[0]) || (info->workwebpage && info->workwebpage[0])) {
g_string_append_printf(str, "<b>%s:</b>", _("Work Information"));
@@ -5168,7 +5168,7 @@
g_string_append_printf(str, "\n<br><b>%s:</b> <a href=\"%s\">%s</a>", _("Web Page"), utf8, utf8);
g_free(utf8);
}
- g_string_append_printf(str, "\n<hr>\n");
+ g_string_append_printf(str, "\n<hr>");
}
if (buddy != NULL)