lib/builder/xmlbase.rb in builder-3.0.3 vs lib/builder/xmlbase.rb in builder-3.0.4

- old
+ new

@@ -42,10 +42,12 @@ args.each do |arg| case arg when ::Hash attrs ||= {} attrs.merge!(arg) + when nil + # do nothing else text ||= '' text << arg.to_s end end @@ -62,10 +64,10 @@ ensure _indent _end_tag(sym) _newline end - elsif text.nil? || text.empty? + elsif text.nil? _indent _start_tag(sym, attrs, true) _newline else _indent