lib/sass/css.rb in haml-2.0.8 vs lib/sass/css.rb in haml-2.0.9

- old
+ new

@@ -309,11 +309,11 @@ # color: blue # def remove_parent_refs(root) root.children.each do |child| if child.is_a?(Tree::RuleNode) - child.rule.gsub! /^& /, '' + child.rule.gsub! /^& +/, '' remove_parent_refs child end end end @@ -375,10 +375,10 @@ # color: blue # def fold_commas(root) prev_rule = nil root.children.map! do |child| - next child unless Tree::RuleNode === child + next child unless child.is_a?(Tree::RuleNode) if prev_rule && prev_rule.children == child.children prev_rule.rule << ", #{child.rule}" next nil end