qulogic/pidgin

Convert buddy notes to plain text before displaying in the tooltip to
avoid invalid pango markup preventing the display of the entire tooltip
text. Fixes #2657
--- a/pidgin/plugins/gtkbuddynote.c Tue Sep 18 20:16:51 2007 +0000
+++ b/pidgin/plugins/gtkbuddynote.c Tue Sep 18 20:30:25 2007 +0000
@@ -31,8 +31,11 @@
const gchar *note = purple_blist_node_get_string(node, "notes");
if ((note != NULL) && (*note != '\0')) {
+ char *tmp;
+ purple_markup_html_to_xhtml(note, NULL, &tmp);
g_string_append_printf(text, _("\n<b>Buddy Note</b>: %s"),
- note);
+ tmp);
+ g_free(tmp);
}
}
}