adamontherun / xCodeGenerateDescriptionPlugin

Plugin to automatically generate the description for your class in XCode
103 stars 11 forks source link

Multiple property in one line will not work well #12

Closed bumaociyuan closed 9 years ago

bumaociyuan commented 9 years ago

@adamontherun Multiple property in one line:

@property (nonatomic, strong) UIImage *headImage;

@property (nonatomic, copy) NSString *name, *nickName, *duty, *email, *summary;

generate incorrect description

- (NSString *)description
{
    return [NSString stringWithFormat:@"BaseInfoForm description:\n%@ headImage: %@\nsummary: %@\n",[super description], self.headImage, self.summary];
}
adamontherun commented 9 years ago

hi @bumaociyuan this is a good idea, but not one that I'm going to fix. I'd be open to a pull request.

bumaociyuan commented 9 years ago

@adamontherun I have fixed this issue. See #13