lib/sass/tree/rule_node.rb in sass-3.1.0.alpha.4 vs lib/sass/tree/rule_node.rb in sass-3.1.0.alpha.5
- old
+ new
@@ -132,10 +132,10 @@
end
rule_indent = ' ' * (tabs - 1)
per_rule_indent, total_indent = [:nested, :expanded].include?(style) ? [rule_indent, ''] : ['', rule_indent]
total_rule = total_indent + resolved_rules.members.
- map {|seq| seq.to_a.join.gsub("\n", style == :compressed ? " " : "\n")}.
+ map {|seq| seq.to_a.join.gsub(/([^,])\n/m, style == :compressed ? '\1 ' : "\\1\n")}.
join(rule_separator).split("\n").map do |line|
per_rule_indent + line.strip
end.join(line_separator)
to_return = ''