im.pidgin.pidgin: e9379f9f8981167315834fbca26ff208749e3038

nosnilmot at pidgin.im nosnilmot at pidgin.im
Sat Oct 27 10:06:00 EDT 2007


-----------------------------------------------------------------
Revision: e9379f9f8981167315834fbca26ff208749e3038
Ancestor: 03b709ec2a153e7e82719df0ba4635108bb1d3c6
Author: nosnilmot at pidgin.im
Date: 2007-10-27T13:31:38
Branch: im.pidgin.pidgin

Modified files:
        libpurple/util.c

ChangeLog: 

Avoid g_log warnings when there's no xhtml to append to, and remove a
mostly useless debug message

-------------- next part --------------
============================================================
--- libpurple/util.c	fc81b45e18e8791c2e17065e0dacc0f8b4ac1fd9
+++ libpurple/util.c	6309ea6124b8abe1c690c1fe4ad04893d3bd8c33
@@ -1642,7 +1642,7 @@ purple_markup_html_to_xhtml(const char *
 					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 @@ purple_str_add_cr(const char *text)
 		ret[j++] = text[i];
 	}
 
-	purple_debug_misc("purple_str_add_cr", "got: %s, leaving with %s\n",
-					text, ret);
-
 	return ret;
 }
 


More information about the Commits mailing list