[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:
parent
a57f482289
commit
bbf8e4b638
|
@ -311,7 +311,7 @@ module Sass
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue