lib/est.rb in est-0.2.1 vs lib/est.rb in est-0.3

- old
+ new

@@ -74,15 +74,17 @@ sanitize( Nokogiri::XML::Builder.new do |xml| xml << "<?xml-stylesheet type='text/xsl' href='#{xsl}'?>" xml.estimate(attrs) do xml.total estimates.total - xml.ests do - estimates.iterate.each do |est| - xml.est do - xml.date est.date - xml.total est.total - xml.author est.author + unless estimates.iterate.empty? + xml.ests do + estimates.iterate.each do |est| + xml.est do + xml.date est.date + xml.total est.total + xml.author est.author + end end end end end end.to_xml