diff src/util.c @ 8026:17b90334f3cc

[gaim-migrate @ 8706] i think this is all ok committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 06 Jan 2004 22:54:00 +0000
parents 3bdfb4308d10
children fa6395637e2c
line wrap: on
line diff
--- 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;
 				}