src/util.c

changeset 8026
91fe30ffb897
parent 8005
de2b2ad34ee5
child 8046
c581b20a47d6
--- a/src/util.c	Tue Jan 06 15:04:51 2004 +0000
+++ b/src/util.c	Tue Jan 06 22:54:00 2004 +0000
@@ -977,14 +977,13 @@
 						p++;
 					}
 					c = strchr(c, '>') + 1;
-					pt = g_new0(struct gaim_parse_tag, 1);
-					pt->src_tag = "font";
-					pt->dest_tag = "span";
-					tags = g_list_prepend(tags, pt);
-					xhtml = g_string_append(xhtml, "<span");
-					if(style->len)
-						g_string_append_printf(xhtml, " style='%s'", style->str);
-					xhtml = g_string_append_c(xhtml, '>');
+					if(style->len) {
+						pt = g_new0(struct gaim_parse_tag, 1);
+						pt->src_tag = "font";
+						pt->dest_tag = "span";
+						tags = g_list_prepend(tags, pt);
+						g_string_append_printf(xhtml, "<span style='%s'>", style->str);
+					}
 					g_string_free(style, TRUE);
 					continue;
 				}

mercurial