Mercurial > pidgin.yaz
comparison src/xmlnode.c @ 12198:9679b615edb8
[gaim-migrate @ 14500]
ugh
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 23 Nov 2005 14:30:51 +0000 |
parents | da44f68fb4d2 |
children | 02833a0ae716 |
comparison
equal
deleted
inserted
replaced
12197:0ab1c9916dc2 | 12198:9679b615edb8 |
---|---|
290 if(c->type == XMLNODE_TYPE_TAG) { | 290 if(c->type == XMLNODE_TYPE_TAG) { |
291 int esc_len; | 291 int esc_len; |
292 esc = xmlnode_to_str_helper(c, &esc_len, pretty, depth+1); | 292 esc = xmlnode_to_str_helper(c, &esc_len, pretty, depth+1); |
293 text = g_string_append_len(text, esc, esc_len); | 293 text = g_string_append_len(text, esc, esc_len); |
294 g_free(esc); | 294 g_free(esc); |
295 } else if(c->type == XMLNODE_TYPE_DATA) { | 295 } else if(c->type == XMLNODE_TYPE_DATA && c->data_sz > 0) { |
296 esc = g_markup_escape_text(c->data, c->data_sz); | 296 esc = g_markup_escape_text(c->data, c->data_sz); |
297 text = g_string_append(text, esc); | 297 text = g_string_append(text, esc); |
298 g_free(esc); | 298 g_free(esc); |
299 } | 299 } |
300 } | 300 } |