Changeset 4245

Show
Ignore:
Timestamp:
01/09/08 04:22:11 (7 years ago)
Author:
nanki
Message:

lang/ruby/misc/chm-generators/generate-actionscript3-chm-bundle-keyword-only.rb: Show package name(tekito), reduce duplicate index.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/misc/chm-generators/generate-actionscript3-chm-bundle-keyword-only.rb

    r1031 r4245  
    2424index_urls.each do |uri| 
    2525        doc = Hpricot(open(uri).read) 
    26         (doc/"td.idxrow > a").each do |a| 
     26        (doc/"td.idxrow > a:first-of-type").each do |a| 
    2727                link = uri + a[:href] 
    2828                keywords << [ 
    29                         CGI.unescapeHTML(a.innerText), 
     29                        CGI.unescapeHTML(a.innerText) + " (#{a[:href].gsub(/\.html.*$/, '').gsub(/\//, '.')})", 
    3030                        [link.to_s] 
    3131                ]