Xcode: Properly indent PBXFileReference and PBXBuildFile
Move indent factor change behind indention of start-of-line.
This commit is contained in:
parent
a723427b64
commit
5cb4c8380d
@ -91,13 +91,13 @@ void cmXCodeObject::Print(std::ostream& out)
|
|||||||
{
|
{
|
||||||
std::string separator = "\n";
|
std::string separator = "\n";
|
||||||
int indentFactor = 1;
|
int indentFactor = 1;
|
||||||
|
cmXCodeObject::Indent(2*indentFactor, out);
|
||||||
if(this->Version > 15
|
if(this->Version > 15
|
||||||
&& (this->IsA == PBXFileReference || this->IsA == PBXBuildFile))
|
&& (this->IsA == PBXFileReference || this->IsA == PBXBuildFile))
|
||||||
{
|
{
|
||||||
separator = " ";
|
separator = " ";
|
||||||
indentFactor = 0;
|
indentFactor = 0;
|
||||||
}
|
}
|
||||||
cmXCodeObject::Indent(2*indentFactor, out);
|
|
||||||
out << this->Id << " ";
|
out << this->Id << " ";
|
||||||
if(!(this->IsA == PBXGroup && this->Comment.size() == 0))
|
if(!(this->IsA == PBXGroup && this->Comment.size() == 0))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user