From 95cb498e378bb5a97f247c6e2ff645d97810e95e Mon Sep 17 00:00:00 2001 From: German Laullon Date: Fri, 18 Mar 2011 12:58:21 -0700 Subject: [PATCH] [14] The "blame", "history" and "diff" commands are broken Related with tabs & spaces --- GLFileView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GLFileView.m b/GLFileView.m index 77ba04e..1c3bc06 100644 --- a/GLFileView.m +++ b/GLFileView.m @@ -119,6 +119,7 @@ id script = [view windowScriptObject]; if(!theError){ NSString *filePath = [file fullPath]; + fileTxt=[fileTxt stringByReplacingOccurrencesOfString:@"\t" withString:@"    "]; [script callWebScriptMethod:@"showFile" withArguments:[NSArray arrayWithObjects:fileTxt, filePath, nil]]; }else{ [script callWebScriptMethod:@"setMessage" withArguments:[NSArray arrayWithObjects:[theError localizedDescription], nil]]; @@ -218,7 +219,6 @@ txt=[txt stringByReplacingOccurrencesOfString:@"&" withString:@"&"]; txt=[txt stringByReplacingOccurrencesOfString:@"<" withString:@"<"]; txt=[txt stringByReplacingOccurrencesOfString:@">" withString:@">"]; - txt=[txt stringByReplacingOccurrencesOfString:@"\t" withString:@"    "]; return txt; }