Commits

Juri Pakaste committed da919ae

Include indentation in the mask function

  • Participants
  • Parent commits e8ed20d

Comments (0)

Files changed (1)

NSStringFromEnumGenerator.py

     defn = "{0} {{".format(decl)
 
     lines = [ext_decl, defn]
-    lines.append("NSMutableArray *bits = [NSMutableArray array];")
+    lines.append("  NSMutableArray *bits = [NSMutableArray array];")
     for ev in parsed_enum.values:
-        check = "if (v & {0}) [bits addObject:@\"{0}\"];".format(ev.name)
+        check = "  if (v & {0}) [bits addObject:@\"{0}\"];".format(ev.name)
         lines.append(check)
-    lines.append("return [bits componentsJoinedByString:@\" | \"];")
+    lines.append("  return [bits componentsJoinedByString:@\" | \"];")
     lines.append("}")
     return "\n".join(lines)