lib/wrongdoc/final.rb in wrongdoc-1.0.1 vs lib/wrongdoc/final.rb in wrongdoc-1.1.0
- old
+ new
@@ -39,9 +39,12 @@
# remove W3C validator link, we use tidy instead
doc.search('div#validator-badges p').each { |x|
/Validate/i =~ x.content and x.unlink
}
+
+ # this shows up in browsers that don't do stylesheets
+ doc.search('div#no-class-search-results').each(&unlink)
end
# since we killed off JavaScript, viewing source isn't possible with
# RDoc anymore, so link people to the web source viewer
def source_linkify!(doc)