diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-04-07 20:00:29 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2015-04-17 19:50:04 (GMT) |
commit | 4bd2544b25655b6e20e5098a5f4cdd973288c106 (patch) | |
tree | a47418ca15ee266a122b12049874eb95ca024724 /Source | |
parent | 5cb4c8380d9a0f5922a2eed60f6a1fd1274e9141 (diff) | |
download | CMake-4bd2544b25655b6e20e5098a5f4cdd973288c106.zip CMake-4bd2544b25655b6e20e5098a5f4cdd973288c106.tar.gz CMake-4bd2544b25655b6e20e5098a5f4cdd973288c106.tar.bz2 |
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.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmXCodeObject.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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<std::string, cmXCodeObject*>::iterator j; - out << i->first << " = {" << separator; + out << i->first << " = {"; + if(separator == "\n") + { + out << separator; + } for(j = object->ObjectAttributes.begin(); j != object->ObjectAttributes.end(); ++j) { |