Skip to content

Commit

Permalink
Merge pull request #47 from lx00st/master
Browse files Browse the repository at this point in the history
saves xml without formatting
  • Loading branch information
sandrods committed Apr 8, 2014
2 parents 543d834 + a52e20f commit 7e7d88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/odf-report/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def cleanup
def parse_document(txt)
doc = Nokogiri::XML(txt)
yield doc
txt.replace(doc.to_s)
txt.replace(doc.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML))
end

def replace_fields!(content)
Expand Down

0 comments on commit 7e7d88f

Please sign in to comment.