Make the generated XML nicely formatted.

This commit is contained in:
Jozef Selesi
2008-11-22 20:00:40 +00:00
parent bb6eeb63bb
commit 47442f9dd2
2 changed files with 1 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ class Atom_Base_Core {
public function as_xml() {
$this->add_children_to_base_element();
$this->dom->formatOutput = true;
return $this->dom->saveXML();
}

View File

@@ -24,7 +24,6 @@ class Atom_Test extends Unit_Test_Case {
* http://codex.gallery2.org/Gallery3:Atom_resource_representations
*
* Uncomment one or both lines at the end of the tests to see the output.
* (You'll have to use your editor to reformat it because there aren't any newlines.)
*/
public function atom_feed_test() {
$feed = new Atom_Feed("feed");