From cea7fdbaf911da4189c0c960a76bdc0b050cd4c1 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Fri, 8 Jan 2016 18:09:57 +0300 Subject: [PATCH] Changed indentation for XMLFeature for easier debugging. --- editor/editor_tests/xml_feature_test.cpp | 65 ++++++------------------ editor/xml_feature.cpp | 2 +- 2 files changed, 17 insertions(+), 50 deletions(-) diff --git a/editor/editor_tests/xml_feature_test.cpp b/editor/editor_tests/xml_feature_test.cpp index 00ed4c9cfc..48591680ea 100644 --- a/editor/editor_tests/xml_feature_test.cpp +++ b/editor/editor_tests/xml_feature_test.cpp @@ -32,11 +32,8 @@ UNIT_TEST(XMLFeature_RawGetSet) TEST_EQUAL(feature.GetTagValue("opening_hours"), "18:20-19:21", ()); auto const expected = R"( - - + + )"; @@ -65,28 +62,13 @@ UNIT_TEST(XMLFeature_Setters) feature.Save(sstr); auto const expectedString = R"( - - - - - - - + + + + + + + )"; @@ -148,28 +130,13 @@ UNIT_TEST(XMLFeature_Setters) UNIT_TEST(XMLFeature_ForEachName) { auto const srcString = R"( - - - - - - - + + + + + + + )"; diff --git a/editor/xml_feature.cpp b/editor/xml_feature.cpp index b5b61660e4..07b6b52c99 100644 --- a/editor/xml_feature.cpp +++ b/editor/xml_feature.cpp @@ -96,7 +96,7 @@ XMLFeature::Type XMLFeature::GetType() const void XMLFeature::Save(ostream & ost) const { - m_document.save(ost, " ", pugi::format_indent_attributes); + m_document.save(ost, " "); } ms::LatLon XMLFeature::GetCenter() const