From 35caa22e40a5f9cff461b34417dbc40397fd2677 Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Wed, 31 Jan 2018 14:17:09 +0200 Subject: [PATCH] Add indents to osc export file --- OsmAnd/src/net/osmand/plus/osmedit/OsmEditsFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsFragment.java index 4769bb2305..15ed31e156 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsFragment.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsFragment.java @@ -720,6 +720,7 @@ public class OsmEditsFragment extends OsmAndListFragment implements SendPoiDialo XmlSerializer sz = Xml.newSerializer(); sz.setOutput(out, "UTF-8"); + sz.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true); sz.startDocument("UTF-8", true); sz.startTag("", "osmChange"); sz.attribute("", "generator", "OsmAnd");