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:
nex3 2007-12-16 21:42:58 +00:00
parent fa8f9251a8
commit a041cb34cb
1 changed files with 1 additions and 1 deletions

View File

@ -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