mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-19 00:51:51 +00:00
improve parsing of initial and ending, fix pasing of quoted quotes as well
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@40238 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
340d101ffd
commit
478033988a
1 changed files with 6 additions and 4 deletions
|
@ -324,9 +324,11 @@
|
|||
{
|
||||
NSString *unescapedString = [recordString copy];
|
||||
|
||||
unescapedString = [unescapedString stringByReplacingOccurrencesOfString: @"~\"" withString: @""];
|
||||
unescapedString = [unescapedString substringToIndex: [unescapedString length] - 1];
|
||||
unescapedString = [unescapedString stringByReplacingOccurrencesOfString: @"\"" withString: @"\""];
|
||||
if ([unescapedString hasPrefix:@"~\""])
|
||||
unescapedString = [unescapedString substringFromIndex:2];
|
||||
if ([unescapedString hasSuffix:@"\""])\
|
||||
unescapedString = [unescapedString substringToIndex: [unescapedString length] - 1];
|
||||
unescapedString = [unescapedString stringByReplacingOccurrencesOfString: @"\\\"" withString: @"\""];
|
||||
unescapedString = [unescapedString stringByReplacingOccurrencesOfString: @"\\n" withString: @"\n"];
|
||||
unescapedString = [unescapedString stringByReplacingOccurrencesOfString: @"\\t" withString: @"\t"];
|
||||
unescapedString = [unescapedString stringByReplacingOccurrencesOfString: @"\\032" withString: @" "];
|
||||
|
@ -346,7 +348,7 @@
|
|||
if(outtype == PCDBConsoleStreamRecord ||
|
||||
outtype == PCDBTargetStreamRecord)
|
||||
{
|
||||
NSString *unescapedString = [self unescapeOutputRecord: item];
|
||||
NSString *unescapedString = [self unescapeOutputRecord: item];
|
||||
[self logString: unescapedString newLine: NO withColor:debuggerColor];
|
||||
}
|
||||
else if(outtype == PCDBPromptRecord)
|
||||
|
|
Loading…
Reference in a new issue