lib/sass/script/string.rb in sass-3.3.0.alpha.101 vs lib/sass/script/string.rb in sass-3.3.0.alpha.102
- old
+ new
@@ -31,10 +31,10 @@
end
# @see Node#to_s
def to_s(opts = {})
if @type == :identifier
- return @value.tr("\n", " ")
+ return @value.gsub(/\s+/, " ")
end
return "\"#{value.gsub('"', "\\\"")}\"" if opts[:quote] == %q{"}
return "'#{value.gsub("'", "\\'")}'" if opts[:quote] == %q{'}
return "\"#{value}\"" unless value.include?('"')