while (cur && cur->data) {
tmp = cur->data;
if (tmp->tag->id == arg->tag->id && (tmp->flags & FL_CLOSED) == 0) {
- msg_debug ("check_balance: found closing tag for parent '%s'", tmp->tag->name);
tmp->flags |= FL_CLOSED;
/* Destroy current node as we find corresponding parent node */
g_node_destroy (node);
return TRUE;
}
- msg_debug ("check_balance: found unbalanced tag %s", arg->tag->name);
return FALSE;
}
else {
g_node_append (*cur_level, new);
if ((data->flags & FL_CLOSED) == 0) {
- msg_debug ("add_html_node: append opening tag: '%s'", data->tag->name);
*cur_level = new;
}
- else {
- msg_debug ("add_html_node: append closed tag: '%s'", data->tag->name);
- }
}
}