1
0
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:
Daniel Veillard
2001-03-02 17:36:21 +00:00
parent b402c07ca5
commit 2f36224e54
7 changed files with 1907 additions and 1010 deletions

View File

@ -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 *