[cmake-developers] [PATCH 6/9] Xcode: Do not add whitespace after attribute group opening brace
Gregor Jasny
gjasny at googlemail.com
Mon Apr 13 15:38:03 EDT 2015
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<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)
{
--
2.3.3
More information about the cmake-developers
mailing list