1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

fixing bug #166777 (and #169838), it was an heuristic in areBlanks which

* parser.c: fixing bug #166777 (and #169838), it was an heuristic
  in areBlanks which failed.
* result/winblanks.xml* result/noent/winblanks.xml test/winblanks.xml:
  added the input file to the regression tests
Daniel
This commit is contained in:
Daniel Veillard
2005-07-06 15:17:38 +00:00
parent 6d30ff2c08
commit abac41e829
9 changed files with 87 additions and 1 deletions

View File

@@ -2142,7 +2142,7 @@ static int areBlanks(xmlParserCtxtPtr ctxt, const xmlChar *str, int len,
/*
* Otherwise, heuristic :-\
*/
if (RAW != '<') return(0);
if ((RAW != '<') && (RAW != 0xD)) return(0);
if ((ctxt->node->children == NULL) &&
(RAW == '<') && (NXT(1) == '/')) return(0);