mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Replace tab characters with 4 blanks in GLFileView.m. (flyingblackhat)
This commit is contained in:
+1
-2
@@ -218,6 +218,7 @@
|
||||
txt=[txt stringByReplacingOccurrencesOfString:@"&" withString:@"&"];
|
||||
txt=[txt stringByReplacingOccurrencesOfString:@"<" withString:@"<"];
|
||||
txt=[txt stringByReplacingOccurrencesOfString:@">" withString:@">"];
|
||||
txt=[txt stringByReplacingOccurrencesOfString:@"\t" withString:@" "];
|
||||
|
||||
return txt;
|
||||
}
|
||||
@@ -479,7 +480,6 @@
|
||||
line=[lines objectAtIndex:i++];
|
||||
}while([line characterAtIndex:0]!='\t');
|
||||
line=[line substringFromIndex:1];
|
||||
line=[line stringByReplacingOccurrencesOfString:@"\t" withString:@" "];
|
||||
[code appendString:line];
|
||||
[code appendString:@"\n"];
|
||||
|
||||
@@ -489,7 +489,6 @@
|
||||
line=[lines objectAtIndex:i++];
|
||||
}while([line characterAtIndex:0]!='\t');
|
||||
line=[line substringFromIndex:1];
|
||||
line=[line stringByReplacingOccurrencesOfString:@"\t" withString:@" "];
|
||||
[code appendString:line];
|
||||
[code appendString:@"\n"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user