Changeset 654 for lang/ruby/chm/lib/chm.rb
- Timestamp:
- 10/24/07 03:05:39 (6 years ago)
- Files:
-
- 1 modified
-
lang/ruby/chm/lib/chm.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/chm/lib/chm.rb
r646 r654 4 4 5 5 require "chmlib" 6 require "nkf" 6 7 7 8 class Chmlib::Chm … … 37 38 local = m[0][/<param name="Local" value="([^"]+)">/, 1] 38 39 m[0].scan(/<param name="Name" value="([^"]+)">/) do |n| 39 (index[n[0]] ||= []) << local 40 n = n[0] 41 next unless n 42 next if n.empty? or n.match(/^\s+$/) 43 n.gsub!(/&/, "&") 44 n.gsub!(/</, "<") 45 n.gsub!(/>/, ">") 46 n = NKF.nkf("-w", n) 47 (index[n] ||= []) << local 40 48 end 41 49 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)