UINode 2.0 cleanup



I'm committing the following patch which cleans up the BonoboUINode
layout for libxml2 parsed documents by stripping the XML_TEXT_NODE nodes
which seem to only contain whitespace.

Mike
Index: bonobo/bonobo-ui-node.c
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-ui-node.c,v
retrieving revision 1.12
diff -u -r1.12 bonobo-ui-node.c
--- bonobo/bonobo-ui-node.c	2001/04/17 23:14:44	1.12
+++ bonobo/bonobo-ui-node.c	2001/06/21 14:28:19
@@ -549,7 +549,6 @@
 	switch (node->type) {
         case XML_DOCUMENT_FRAG_NODE:
         case XML_ELEMENT_NODE:
-	case XML_TEXT_NODE:
         case XML_ENTITY_NODE:
         case XML_ENTITY_REF_NODE: {
 /*		xmlAttr *a, *nexta; */
@@ -585,6 +584,7 @@
         case XML_DOCUMENT_TYPE_NODE:
         case XML_NOTATION_NODE:
         case XML_CDATA_SECTION_NODE:
+	case XML_TEXT_NODE:
 	default: /* FIXME: needs scrutiny of
 		    XML_DTD_NODE
 		    XML_ELEMENT_DECL


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]