From 5cb4c8380d9a0f5922a2eed60f6a1fd1274e9141 Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Tue, 7 Apr 2015 20:47:10 +0200 Subject: Xcode: Properly indent PBXFileReference and PBXBuildFile Move indent factor change behind indention of start-of-line. --- Source/cmXCodeObject.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx index 33ce8cc..519545a 100644 --- a/Source/cmXCodeObject.cxx +++ b/Source/cmXCodeObject.cxx @@ -91,13 +91,13 @@ void cmXCodeObject::Print(std::ostream& out) { std::string separator = "\n"; int indentFactor = 1; + cmXCodeObject::Indent(2*indentFactor, out); if(this->Version > 15 && (this->IsA == PBXFileReference || this->IsA == PBXBuildFile)) { separator = " "; indentFactor = 0; } - cmXCodeObject::Indent(2*indentFactor, out); out << this->Id << " "; if(!(this->IsA == PBXGroup && this->Comment.size() == 0)) { -- cgit v0.12