Insert newlines after XML dec/doctypes.

This commit is contained in:
Yorick Peterse committed 2014-04-03 23:04:21 +02:00
1 parent 230fafa2d3
commit a2c525dd7c
2 files changed
+23 -4

No files matched your search

+2 -2
View File
@@ -21,11 +21,11 @@ module Oga
xml = children.map(&:to_xml).join('')
if doctype
xml = doctype.to_xml + xml
xml = doctype.to_xml + "\n" + xml.strip
end
if xml_declaration
xml = xml_declaration.to_xml + xml
xml = xml_declaration.to_xml + "\n" + xml.strip
end
return xml