Skip to content

Commit d1298a6

Browse files
committed
remove the "author" and "summary" labels
1 parent 1a4a179 commit d1298a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GLFileView.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ - (NSString *) parseBlame:(NSString *)txt
161161
[res appendFormat:@"<tr class='block l%d'>\n",nLines];
162162
line=[lines objectAtIndex:++i];
163163
if([[[line componentsSeparatedByString:@" "] objectAtIndex:0] isEqual:@"author"]){
164-
NSString *author=line;
164+
NSString *author=[line stringByReplacingOccurrencesOfString:@"author" withString:@""];
165165
NSString *summary=nil;
166166
while(summary==nil){
167167
line=[lines objectAtIndex:i++];
168168
if([[[line componentsSeparatedByString:@" "] objectAtIndex:0] isEqual:@"summary"]){
169-
summary=line;
169+
summary=[line stringByReplacingOccurrencesOfString:@"summary" withString:@""];
170170
}
171171
}
172172
NSString *block=[NSString stringWithFormat:@"<td><p class='author'>%@</p><p class='summary'>%@</p></td>\n<td>\n",author,summary];

0 commit comments

Comments
 (0)