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; }