lib/model_xml/generator.rb in model_xml-1.0.1 vs lib/model_xml/generator.rb in model_xml-1.0.2

- old
+ new

@@ -107,10 +107,11 @@ end end # builder will screw up the indentation of embedded xml objects, so use nokogiri to format it nicely output = xml.target!.gsub("\n","").gsub(" ","") - Nokogiri.parse(output).to_s + xml = Nokogiri.parse(output) + options[:skip_instruct] ? xml.root.to_s : xml.to_s end end end