Skip to content

Commit

Permalink
Added .sub call to remove xml struct from xml representation method
Browse files Browse the repository at this point in the history
  • Loading branch information
derekzak committed Dec 2, 2011
1 parent e7ec5a8 commit 7befd73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tokamak/builder/xml.rb
Expand Up @@ -59,7 +59,7 @@ def insert_value(name, prefix, *args, &block)
end

def representation
@raw.to_xml
@raw.to_xml.sub!(/^(\s+)?<\?xml version="1\.0"\?>\n?/, "")
end

private
Expand Down

0 comments on commit 7befd73

Please sign in to comment.