Add indents to osc export file

This commit is contained in:
Alexander Sytnyk 2018-01-31 14:17:09 +02:00
parent 82722937f7
commit 35caa22e40

View file

@ -720,6 +720,7 @@ public class OsmEditsFragment extends OsmAndListFragment implements SendPoiDialo
XmlSerializer sz = Xml.newSerializer(); XmlSerializer sz = Xml.newSerializer();
sz.setOutput(out, "UTF-8"); sz.setOutput(out, "UTF-8");
sz.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);
sz.startDocument("UTF-8", true); sz.startDocument("UTF-8", true);
sz.startTag("", "osmChange"); sz.startTag("", "osmChange");
sz.attribute("", "generator", "OsmAnd"); sz.attribute("", "generator", "OsmAnd");