Mercurial > pidgin.yaz
diff libpurple/util.c @ 21028:e4cf0506be74
Avoid g_log warnings when there's no xhtml to append to, and remove a
mostly useless debug message
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Sat, 27 Oct 2007 13:31:38 +0000 |
| parents | 787b3897ba9f |
| children | 35b4f1dc4c8d |
line wrap: on
line diff
--- a/libpurple/util.c Sat Oct 27 13:28:03 2007 +0000 +++ b/libpurple/util.c Sat Oct 27 13:31:38 2007 +0000 @@ -1642,7 +1642,7 @@ pt->src_tag = "font"; pt->dest_tag = "span"; tags = g_list_prepend(tags, pt); - if(style->len) + if(style->len && xhtml) g_string_append_printf(xhtml, "<span style='%s'>", g_strstrip(style->str)); else pt->ignore = TRUE; @@ -3067,9 +3067,6 @@ ret[j++] = text[i]; } - purple_debug_misc("purple_str_add_cr", "got: %s, leaving with %s\n", - text, ret); - return ret; }
