1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-08 17:42:14 +03:00

Trying another better solution at the <a> </a> problem, Daniel

This commit is contained in:
Daniel Veillard
2000-03-02 03:46:43 +00:00
parent 83a30e7a16
commit 90fb02caaf
2 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
Thu Mar 2 04:45:15 CET 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* parser.c: seems a better solution to <a> </a> exists,
will try it for a while
Thu Mar 2 02:26:13 CET 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* parser.c: tried to remove the <a> </a> generating <a/>

View File

@@ -2101,6 +2101,8 @@ static int areBlanks(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
return(0);
if (CUR != '<') return(0);
if (ctxt->node == NULL) return(0);
if ((ctxt->node->childs == NULL) &&
(CUR == '<') && (NXT(1) == '/')) return(0);
lastChild = xmlGetLastChild(ctxt->node);
if (lastChild == NULL) {