File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/org/openarchives/resourcesync Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
33import org .jdom2 .Document ;
44import org .jdom2 .Element ;
5+ import org .jdom2 .output .Format ;
56import org .jdom2 .output .XMLOutputter ;
67
78import java .io .IOException ;
@@ -120,7 +121,7 @@ public String serialise()
120121 {
121122 Element element = this .getElement ();
122123 Document doc = new Document (element );
123- XMLOutputter out = new XMLOutputter ();
124+ XMLOutputter out = new XMLOutputter (Format . getPrettyFormat () );
124125 return out .outputString (doc );
125126 }
126127
@@ -129,7 +130,7 @@ public void serialise(OutputStream out)
129130 {
130131 Element element = this .getElement ();
131132 Document doc = new Document (element );
132- XMLOutputter xmlOutputter = new XMLOutputter ();
133+ XMLOutputter xmlOutputter = new XMLOutputter (Format . getPrettyFormat () );
133134 xmlOutputter .output (doc , out );
134135 }
135136}
You can’t perform that action at this time.
0 commit comments