[14] The "blame", "history" and "diff" commands are broken

Related with tabs & spaces
This commit is contained in:
German Laullon
2011-03-18 12:58:21 -07:00
parent 8e98e0b48e
commit 95cb498e37
+1 -1
View File
@@ -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:@"&lt;"];
txt=[txt stringByReplacingOccurrencesOfString:@">" withString:@"&gt;"];
txt=[txt stringByReplacingOccurrencesOfString:@"\t" withString:@"&nbsp;&nbsp;&nbsp;&nbsp;"];
return txt;
}