diff options
author | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-22 20:00:40 +0000 |
---|---|---|
committer | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-22 20:00:40 +0000 |
commit | 47442f9dd2bee70df745b2ec6026a121f9f29eeb (patch) | |
tree | 50925301abcbd47082b8e5d8c6231a8e2e82d3bf /modules | |
parent | bb6eeb63bbf95d82fd811f34f358a4f64ae66d79 (diff) |
Make the generated XML nicely formatted.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/atom/libraries/Atom_Base.php | 1 | ||||
-rw-r--r-- | modules/atom/tests/Atom_Test.php | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/modules/atom/libraries/Atom_Base.php b/modules/atom/libraries/Atom_Base.php index 62fdfea1..6e0098da 100644 --- a/modules/atom/libraries/Atom_Base.php +++ b/modules/atom/libraries/Atom_Base.php @@ -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(); } diff --git a/modules/atom/tests/Atom_Test.php b/modules/atom/tests/Atom_Test.php index 28192419..ab18ed25 100644 --- a/modules/atom/tests/Atom_Test.php +++ b/modules/atom/tests/Atom_Test.php @@ -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"); |