[Sass] Fixed a bug in css2sass where a parent reference with extra spaces between the parent and the child in the source css would result in malformed sass.

This commit is contained in:
Chris Eppstein 2009-02-15 09:14:58 -08:00
parent a57f482289
commit bbf8e4b638
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ module Sass
def remove_parent_refs(root) def remove_parent_refs(root)
root.children.each do |child| root.children.each do |child|
if child.is_a?(Tree::RuleNode) if child.is_a?(Tree::RuleNode)
child.rule.gsub! /^& /, '' child.rule.gsub! /^& +/, ''
remove_parent_refs child remove_parent_refs child
end end
end end