File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,9 +48,14 @@ -(NSString *) startComment
4848 NSString *authorInfo = @" " ;
4949 if ([[VVDocumenterSetting defaultSetting ] useAuthorInformation ] && !self.forSwift ) {
5050
51- authorInfo = [NSString stringWithFormat: @" %@ @Author %@ " ,
52- self .prefixString,
53- [[VVDocumenterSetting defaultSetting ] authorInformation ]];
51+ authorInfo = [NSString stringWithFormat: @" %@ @Author" ,
52+ self .prefixString];
53+
54+ if ([[VVDocumenterSetting defaultSetting ] authorInformation ].length > 0 ) {
55+ authorInfo = [NSString stringWithFormat: @" %@ %@ ," ,
56+ self .prefixString,
57+ [[VVDocumenterSetting defaultSetting ] authorInformation ]];
58+ }
5459
5560 if ([[VVDocumenterSetting defaultSetting ] useDateInformation ]) {
5661 NSString *formatString = [[VVDocumenterSetting defaultSetting ] dateInformationFormat ];
@@ -60,7 +65,7 @@ -(NSString *) startComment
6065 NSDateFormatter *formatter = [[NSDateFormatter alloc ] init ];
6166 [formatter setDateFormat: formatString];
6267
63- authorInfo = [NSString stringWithFormat: @" %@ , %@ " ,
68+ authorInfo = [NSString stringWithFormat: @" %@ %@ " ,
6469 authorInfo,
6570 [formatter stringFromDate: [NSDate date ]]];
6671 }
You can’t perform that action at this time.
0 commit comments