| 5365 tags = g_slist_reverse(tags); |
5365 tags = g_slist_reverse(tags); |
| 5366 for (sl = tags; sl; sl = sl->next) { |
5366 for (sl = tags; sl; sl = sl->next) { |
| 5367 tag = sl->data; |
5367 tag = sl->data; |
| 5368 /** don't worry about non-printing tags ending */ |
5368 /** don't worry about non-printing tags ending */ |
| 5369 if (tag_ends_here(tag, &iter, &next_iter) && |
5369 if (tag_ends_here(tag, &iter, &next_iter) && |
| 5370 strlen(tag_to_html_end(tag)) > 0 && |
5370 *tag_to_html_end(tag) && |
| 5371 strlen(tag_to_html_start(tag)) > 0) { |
5371 *tag_to_html_start(tag)) |
| 5372 |
5372 { |
| 5373 PidginTextTagData *tmp; |
5373 PidginTextTagData *tmp; |
| 5374 GQueue *r = g_queue_new(); |
5374 GQueue *r = g_queue_new(); |
| 5375 |
5375 |
| 5376 while ((tmp = g_queue_pop_tail(q)) && tmp->tag != tag) { |
5376 while ((tmp = g_queue_pop_tail(q)) && tmp->tag != tag) { |
| 5377 g_string_append(str, tmp->end); |
5377 g_string_append(str, tmp->end); |