lib/crass/parser.rb in crass-1.0.0 vs lib/crass/parser.rb in crass-1.0.1

- old
+ new

@@ -77,9 +77,20 @@ nodes.each do |node| next if node.nil? case node[:node] + when :at_rule + string << '@' + string << node[:name] + string << self.stringify(node[:prelude], options) + + if node[:block] + string << '{' << self.stringify(node[:block], options) << '}' + else + string << ';' + end + when :comment string << node[:raw] unless options[:exclude_comments] when :simple_block string << node[:start]