null+****@clear*****
null+****@clear*****
Tue May 1 14:19:40 JST 2012
Yoji SHIDARA 2012-05-01 14:19:40 +0900 (Tue, 01 May 2012) New Revision: 3fd950a88648cdc696886ae11270be4458285298 Merged eb9ea02: Merge pull request #59 from logaling/fix-mozila-empty-entries Log: remove 'NO-BREAK SPACE' (U+00A0) Modified files: lib/logaling/external_glossaries/mozilla_japan.rb Modified: lib/logaling/external_glossaries/mozilla_japan.rb (+1 -1) =================================================================== --- lib/logaling/external_glossaries/mozilla_japan.rb 2012-05-01 13:18:00 +0900 (db4abb4) +++ lib/logaling/external_glossaries/mozilla_japan.rb 2012-05-01 14:19:40 +0900 (5dd8177) @@ -32,7 +32,7 @@ module Logaling doc.css("dl[@class='terminology en-ja']").each do |dl| dl.children.each_slice(2) do |dt, dd| dd.text.split("|").each do |ddt| - ddt = ddt.gsub(/\s/, '') + ddt = ddt.gsub(/\s|\u{a0}/, '') unless ddt.empty? csv << [dust_to_tilda(dt.text), dust_to_tilda(ddt)] end