mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
store the line numbder in element->content, may break some software, need
* DOCBparser.c HTMLparser.c HTMLtree.c SAX.c debugXML.c parser.c tree.c xpointer.c: store the line numbder in element->content, may break some software, need a configuration mechanism Daniel
This commit is contained in:
@ -1782,7 +1782,8 @@ static int areBlanks(htmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
|
||||
if (ctxt->node == NULL) return(0);
|
||||
lastChild = xmlGetLastChild(ctxt->node);
|
||||
if (lastChild == NULL) {
|
||||
if (ctxt->node->content != NULL) return(0);
|
||||
if ((ctxt->node->type != XML_ELEMENT_NODE) &&
|
||||
(ctxt->node->content != NULL)) return(0);
|
||||
} else if (xmlNodeIsText(lastChild)) {
|
||||
return(0);
|
||||
} else if (xmlStrEqual(lastChild->name, BAD_CAST"b")) {
|
||||
|
Reference in New Issue
Block a user