Skip to content

Commit

Permalink
remove the "author" and "summary" labels
Browse files Browse the repository at this point in the history
  • Loading branch information
laullon committed Sep 18, 2010
1 parent 1a4a179 commit d1298a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GLFileView.m
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ - (NSString *) parseBlame:(NSString *)txt
[res appendFormat:@"<tr class='block l%d'>\n",nLines];
line=[lines objectAtIndex:++i];
if([[[line componentsSeparatedByString:@" "] objectAtIndex:0] isEqual:@"author"]){
NSString *author=line;
NSString *author=[line stringByReplacingOccurrencesOfString:@"author" withString:@""];
NSString *summary=nil;
while(summary==nil){
line=[lines objectAtIndex:i++];
if([[[line componentsSeparatedByString:@" "] objectAtIndex:0] isEqual:@"summary"]){
summary=line;
summary=[line stringByReplacingOccurrencesOfString:@"summary" withString:@""];
}
}
NSString *block=[NSString stringWithFormat:@"<td><p class='author'>%@</p><p class='summary'>%@</p></td>\n<td>\n",author,summary];
Expand Down

0 comments on commit d1298a6

Please sign in to comment.