aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-05-11 23:06:37 +0000
committerrowanbeentje <rowan@beent.je>2010-05-11 23:06:37 +0000
commit00abe0fa272dd06b8b12fa13cb16af1ca89de58c (patch)
treefcfde619641ee671777878731c01b9a02ba45244
parent6c1dd42628da121538c8e155439206355e673e92 (diff)
downloadsequelpro-00abe0fa272dd06b8b12fa13cb16af1ca89de58c.tar.gz
sequelpro-00abe0fa272dd06b8b12fa13cb16af1ca89de58c.tar.bz2
sequelpro-00abe0fa272dd06b8b12fa13cb16af1ca89de58c.zip
- Correctly append tabs to binary/data cells when copying as tab-separated rows. This addresses Issue #681
-rw-r--r--Source/CMCopyTable.m4
1 files changed, 3 insertions, 1 deletions
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)];
}