diff options
author | Ralph Amissah <ralph@amissah.com> | 2015-03-19 18:38:21 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2015-03-23 21:46:12 -0400 |
commit | 64dfdccbc0a136aab15c53ef0375244a28895429 (patch) | |
tree | d1cca15d22480dfb9e31765bd6160e72aab0c102 /lib/sisu/develop/html_harvest_topics.rb | |
parent | d: manifest add html ids to label/identify content (diff) |
d: ao & elsewhere, use of map & select
Diffstat (limited to 'lib/sisu/develop/html_harvest_topics.rb')
-rw-r--r-- | lib/sisu/develop/html_harvest_topics.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sisu/develop/html_harvest_topics.rb b/lib/sisu/develop/html_harvest_topics.rb index bd461377..22c880d6 100644 --- a/lib/sisu/develop/html_harvest_topics.rb +++ b/lib/sisu/develop/html_harvest_topics.rb @@ -158,10 +158,9 @@ module SiSU_HarvestTopics end idx_array[lang] <<=if @idx_list =~/;/ g=@idx_list.scan(/[^;]+/) - idxl=[] - g.each do |i| + g.each.map do |i| i=i.strip - idxl << { + { filename: filename, file: file, rough_idx: i, @@ -171,7 +170,6 @@ module SiSU_HarvestTopics lang: lang } end - idxl else { filename: filename, file: file, |