mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
- parser.c: one must report spaces even if the Dtd element
content proves that this is not part of the element content. - result/valid/*.xml: this changed the ouptu slightly Daniel
This commit is contained in:
7
parser.c
7
parser.c
@ -1393,6 +1393,9 @@ static int areBlanks(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
|
||||
int i, ret;
|
||||
xmlNodePtr lastChild;
|
||||
|
||||
if (ctxt->keepBlanks)
|
||||
return(0);
|
||||
|
||||
/*
|
||||
* Check for xml:space value.
|
||||
*/
|
||||
@ -1417,8 +1420,6 @@ static int areBlanks(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
|
||||
/*
|
||||
* Otherwise, heuristic :-\
|
||||
*/
|
||||
if (ctxt->keepBlanks)
|
||||
return(0);
|
||||
if (RAW != '<') return(0);
|
||||
if (ctxt->node == NULL) return(0);
|
||||
if ((ctxt->node->children == NULL) &&
|
||||
@ -1641,7 +1642,7 @@ xmlParseName(xmlParserCtxtPtr ctxt) {
|
||||
return(ret);
|
||||
}
|
||||
}
|
||||
xmlParseNameComplex(ctxt);
|
||||
return(xmlParseNameComplex(ctxt));
|
||||
}
|
||||
|
||||
xmlChar *
|
||||
|
Reference in New Issue
Block a user