mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
* 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:
2
parser.c
2
parser.c
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user