# HG changeset patch
# User Stu Tomlinson <stu@nosnilmot.com>
# Date 1193491898 0
# Node ID e4cf0506be741c5dbeb4be23033be84e5b856fdc
# Parent  f9fd63586fcbfe4928e39e2044917e3ba797ef5c
Avoid g_log warnings when there's no xhtml to append to, and remove a
mostly useless debug message

diff -r f9fd63586fcb -r e4cf0506be74 libpurple/util.c
--- 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;
 }