changeset 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 f9fd63586fcb
children 3a12f08b2185
files libpurple/util.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
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;
 }