lib/sass/tree/attr_node.rb in haml-edge-2.1.3 vs lib/sass/tree/attr_node.rb in haml-edge-2.1.4
- old
+ new
@@ -33,9 +33,10 @@
if !value.empty?
to_return << "#{spaces}#{real_name}:#{@style == :compressed ? '' : ' '}#{value};#{join_string}"
end
children.each do |kid|
+ next if kid.invisible?
to_return << kid.to_s(tabs, real_name) << join_string
end
(@style == :compressed && parent_name) ? to_return : to_return[0...-1]
end