From 00abe0fa272dd06b8b12fa13cb16af1ca89de58c Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 11 May 2010 23:06:37 +0000 Subject: - Correctly append tabs to binary/data cells when copying as tab-separated rows. This addresses Issue #681 --- Source/CMCopyTable.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/CMCopyTable.m b/Source/CMCopyTable.m index 9c12b358..cba561aa 100644 --- a/Source/CMCopyTable.m +++ b/Source/CMCopyTable.m @@ -159,6 +159,7 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2003; if (displayString) { [result appendString:displayString]; [displayString release]; + [result appendString:@"\t"]; } } else [result appendString:[NSString stringWithFormat:@"%@\t", [cellData description]]]; @@ -166,7 +167,8 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2003; [result appendString:@"\t"]; } } - + + // Remove the trailing tab and add the linebreak if ([result length]){ [result deleteCharactersInRange:NSMakeRange([result length]-1, 1)]; } -- cgit v1.2.3