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:
10
parser.c
10
parser.c
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user