Fixed erroneous indentation of output for attribute-less Sass rules.

Thanks again to Tom Stuart!


git-svn-id: svn://hamptoncatlin.com/haml/trunk@426 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2007-03-17 10:24:43 +00:00
parent 1081049de8
commit bf57ea77eb
3 changed files with 17 additions and 1 deletions

View File

@ -50,7 +50,8 @@ module Sass::Tree
end
end
sub_rules.each { |sub| to_return << sub.to_s(tabs + 1, total_rule) }
tabs += 1 unless attributes.empty?
sub_rules.each { |sub| to_return << sub.to_s(tabs, total_rule) }
to_return
end
end

View File

@ -12,3 +12,10 @@
font-weight: bold;
float: left; }
#right .header {
border-style: solid; }
#right .body {
border-style: dotted; }
#right .footer {
border-style: dashed; }

View File

@ -13,3 +13,11 @@
:size 2em
:weight bold
:float left
#right
.header
:border-style solid
.body
:border-style dotted
.footer
:border-style dashed