Преглед на файлове

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.
Gregor Jasny преди 10 години
родител
ревизия
4bd2544b25
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      Source/cmXCodeObject.cxx

+ 5 - 1
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)
         {