Permalink
Browse files

Revert "Added fix to strip out spurious whitespace on tags"

This reverts commit 2ce4249.
  • Loading branch information...
1 parent 80faa23 commit d1a163dbbb28d7043cda2ca33cdb562e6e184e1f @paulcbetts committed Dec 11, 2007
Showing with 2 additions and 7 deletions.
  1. +2 −3 lib/song.rb
  2. +0 −4 lib/utility.rb
View
@@ -65,7 +65,6 @@ def [](key)
def []=(key, val)
case key
when :ext
- # This is a generated property - don't let anyone set it
nil
when :path
@data[key] = Pathname.new val
@@ -81,10 +80,10 @@ def []=(key, val)
h = @data[:hours].to_i; m = @data[:minutes].to_i; s = @data[:seconds].to_i
@data[:length] = (h*3600+m*60+s).to_s
when :artist
- @data[key] = super_chomp(val)
+ @data[key] = val
@data.delete :canonical_artist if @data.has_key? :canonical_artist
else
- @data[key] = super_chomp(val)
+ @data[key] = val
end
end
View
@@ -122,7 +122,3 @@ def filelist_from_root(path)
list
end
-
-def super_chomp(s)
- s.gsub(/\W*$/, '').gsub!(/^\W*(\w.*)$/, '\1') || ''
-end

0 comments on commit d1a163d

Please sign in to comment.