# HG changeset patch # User Stu Tomlinson # Date 1190147425 0 # Node ID 2a8b576590d8fd2792919a1a5c503d3acdc93046 # Parent 5ad014c6e44b46db232d726f0b1b303d22ad7fd1 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 diff -r 5ad014c6e44b -r 2a8b576590d8 pidgin/plugins/gtkbuddynote.c --- 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, _("\nBuddy Note: %s"), - note); + tmp); + g_free(tmp); } } }