[yelp: 9/17] yelp-mallard-document: Don't index <comment> elements



commit 48e8316d44c425bf201a8719a8d95e119390250c
Author: Shaun McCance <shaunm gnome org>
Date:   Sun Feb 13 13:29:16 2011 -0500

    yelp-mallard-document: Don't index <comment> elements

 libyelp/yelp-mallard-document.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-mallard-document.c b/libyelp/yelp-mallard-document.c
index 7d67811..21a35ca 100644
--- a/libyelp/yelp-mallard-document.c
+++ b/libyelp/yelp-mallard-document.c
@@ -878,7 +878,8 @@ mallard_index_node (MallardIndexData *index)
         }
 
         if (child->type != XML_ELEMENT_NODE ||
-            xml_node_is_ns_name (child, MALLARD_NS, BAD_CAST "info"))
+            xml_node_is_ns_name (child, MALLARD_NS, BAD_CAST "info") ||
+            xml_node_is_ns_name (child, MALLARD_NS, BAD_CAST "comment"))
             continue;
 
         if (xml_node_is_ns_name (child, MALLARD_NS, BAD_CAST "p") ||



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