src/util.c

changeset 8026
91fe30ffb897
parent 8005
de2b2ad34ee5
child 8046
c581b20a47d6
equal deleted inserted replaced
8025:a00b40e44bce 8026:91fe30ffb897
975 p = q; 975 p = q;
976 } 976 }
977 p++; 977 p++;
978 } 978 }
979 c = strchr(c, '>') + 1; 979 c = strchr(c, '>') + 1;
980 pt = g_new0(struct gaim_parse_tag, 1); 980 if(style->len) {
981 pt->src_tag = "font"; 981 pt = g_new0(struct gaim_parse_tag, 1);
982 pt->dest_tag = "span"; 982 pt->src_tag = "font";
983 tags = g_list_prepend(tags, pt); 983 pt->dest_tag = "span";
984 xhtml = g_string_append(xhtml, "<span"); 984 tags = g_list_prepend(tags, pt);
985 if(style->len) 985 g_string_append_printf(xhtml, "<span style='%s'>", style->str);
986 g_string_append_printf(xhtml, " style='%s'", style->str); 986 }
987 xhtml = g_string_append_c(xhtml, '>');
988 g_string_free(style, TRUE); 987 g_string_free(style, TRUE);
989 continue; 988 continue;
990 } 989 }
991 if(!g_ascii_strncasecmp(c, "<body ", 6)) { 990 if(!g_ascii_strncasecmp(c, "<body ", 6)) {
992 const char *p = c; 991 const char *p = c;

mercurial