From 4bd2544b25655b6e20e5098a5f4cdd973288c106 Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Tue, 7 Apr 2015 22:00:29 +0200 Subject: Xcode: Do not add whitespace after attribute group opening brace This suppresses the extra space that would be generated if the separator is a space. The conditional block is also used in this form elsewhere. --- Source/cmXCodeObject.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx index 519545a..72d8e99 100644 --- a/Source/cmXCodeObject.cxx +++ b/Source/cmXCodeObject.cxx @@ -139,7 +139,11 @@ void cmXCodeObject::Print(std::ostream& out) else if(object->TypeValue == ATTRIBUTE_GROUP) { std::map::iterator j; - out << i->first << " = {" << separator; + out << i->first << " = {"; + if(separator == "\n") + { + out << separator; + } for(j = object->ObjectAttributes.begin(); j != object->ObjectAttributes.end(); ++j) { -- cgit v0.12