1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

fixed a bug when walking the descendants and the current node has no

* xpath.c: fixed a bug when walking the descendants and
  the current node has no children
* debugXML.c: show up when a text node is supposed to not be escaped
Daniel
This commit is contained in:
Daniel Veillard
2001-08-01 15:53:47 +00:00
parent f186c8259a
commit 567e1b48e8
3 changed files with 17 additions and 8 deletions

View File

@ -20,15 +20,13 @@
#include <libxml/xmlmemory.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/valid.h>
#include <libxml/debugXML.h>
#include <libxml/HTMLtree.h>
#include <libxml/HTMLparser.h>
#include <libxml/xmlerror.h>
#define IS_BLANK(c) \
(((c) == '\n') || ((c) == '\r') || ((c) == '\t') || ((c) == ' '))
/**
* xmlDebugDumpString:
* @output: the FILE * for the output
@ -569,7 +567,10 @@ xmlDebugDumpOneNode(FILE * output, xmlNodePtr node, int depth)
break;
case XML_TEXT_NODE:
fprintf(output, shift);
fprintf(output, "TEXT\n");
if (node->name == xmlStringTextNoenc)
fprintf(output, "TEXT no enc\n");
else
fprintf(output, "TEXT\n");
break;
case XML_CDATA_SECTION_NODE:
fprintf(output, shift);