1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-01 10:06:59 +03:00

Trying another better solution at the <a> </a> problem, Daniel

This commit is contained in:
Daniel Veillard
2000-03-02 03:46:43 +00:00
parent 83a30e7a16
commit 90fb02caaf
2 changed files with 11 additions and 4 deletions

View File

@ -2101,15 +2101,17 @@ static int areBlanks(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
return(0);
if (CUR != '<') return(0);
if (ctxt->node == NULL) return(0);
if ((ctxt->node->childs == NULL) &&
(CUR == '<') && (NXT(1) == '/')) return(0);
lastChild = xmlGetLastChild(ctxt->node);
if (lastChild == NULL) {
if (ctxt->node->content != NULL) return(0);
if (ctxt->node->content != NULL) return(0);
} else if (xmlNodeIsText(lastChild))
return(0);
return(0);
else if ((ctxt->node->childs != NULL) &&
(xmlNodeIsText(ctxt->node->childs)))
return(0);
(xmlNodeIsText(ctxt->node->childs)))
return(0);
return(1);
}