From d1298a6c574882ae56909b700d8f6632f106a2e4 Mon Sep 17 00:00:00 2001 From: German Laullon Date: Sat, 18 Sep 2010 11:18:21 -0700 Subject: [PATCH] remove the "author" and "summary" labels --- GLFileView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GLFileView.m b/GLFileView.m index f64c39a..76f0547 100644 --- a/GLFileView.m +++ b/GLFileView.m @@ -161,12 +161,12 @@ [res appendFormat:@"\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:@"

%@

%@

\n\n",author,summary];