Fixing a little stylesheet flattening bug.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@697 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
fa8f9251a8
commit
a041cb34cb
|
@ -248,7 +248,7 @@ module Sass
|
||||||
# color: red
|
# color: red
|
||||||
#
|
#
|
||||||
def flatten_rules(root)
|
def flatten_rules(root)
|
||||||
if root.children.size == 1 && root.children.first.is_a?(Tree::RuleNode)
|
while root.children.size == 1 && root.children.first.is_a?(Tree::RuleNode)
|
||||||
child = root.children.first
|
child = root.children.first
|
||||||
root.rule = "#{root.rule} #{child.rule}"
|
root.rule = "#{root.rule} #{child.rule}"
|
||||||
root.children = child.children
|
root.children = child.children
|
||||||
|
|
Loading…
Reference in New Issue