lib/tasks/phonelib_tasks.rake in phonelib-0.2.2 vs lib/tasks/phonelib_tasks.rake in phonelib-0.2.3
- old
+ new
@@ -49,10 +49,10 @@
current_format[f[0].to_sym] = f[1]
end
format.children.each do |f|
if f.name != 'text'
- current_format[f.name.to_sym] = f.children.first.to_s.tr(" \n", "")
+ current_format[f.name.to_sym] = f.children.first.to_s.gsub(/\n\s+/, "")
end
end
country[:formats].push(current_format)
end