]> granicus.if.org Git - docbook-dsssl/commitdiff
Only index text if inside id='content'
authorDavid Cramer <david@thingbag.net>
Sun, 9 Oct 2011 02:49:50 +0000 (02:49 +0000)
committerDavid Cramer <david@thingbag.net>
Sun, 9 Oct 2011 02:49:50 +0000 (02:49 +0000)
xsl-webhelpindexer/src/com/nexwave/nquindexer/SaxDocFileParser.java

index 9ebec1016ee522624fb9a2cfb709959b422410bb..ca202f06efc5a8c3c23e12ab9aabc9067d8fcc28 100755 (executable)
@@ -206,7 +206,7 @@ public class SaxDocFileParser extends org.xml.sax.helpers.DefaultHandler {
 \r
         //OXYGEN PATCH, gather more keywords.\r
         if (\r
-//                             (addContent || addHeaderInfo) && \r
+           (addContent || addHeaderInfo) &&  // DWC: Oxygen Patch had this line commented out but we need it for DocBook to keep toc from being indexed.\r
                 !doNotIndex && !currentElName.equalsIgnoreCase("script")) {\r
             String text = new String(ch, start, length);\r
             // START OXYGEN PATCH, append a marker after each word\r