diff options
author | bamse16 <marius@marius.me.uk> | 2009-04-23 18:53:16 +0000 |
---|---|---|
committer | bamse16 <marius@marius.me.uk> | 2009-04-23 18:53:16 +0000 |
commit | c9e479920045b70459c22c68044675020588c14f (patch) | |
tree | 7b0848416f7952b8d45010938d629f0835158971 /Source | |
parent | a16c4f07fb362c3dac9af24f8df8765ca1e61900 (diff) | |
download | sequelpro-c9e479920045b70459c22c68044675020588c14f.tar.gz sequelpro-c9e479920045b70459c22c68044675020588c14f.tar.bz2 sequelpro-c9e479920045b70459c22c68044675020588c14f.zip |
Replace in console, new lines (\n) with space
Default extension for query log file save is .sql
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPQueryConsole.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPQueryConsole.m b/Source/SPQueryConsole.m index bac258c9..6e65b3a2 100644 --- a/Source/SPQueryConsole.m +++ b/Source/SPQueryConsole.m @@ -27,7 +27,7 @@ #define MESSAGE_TIME_STAMP_FORMAT @"%H:%M:%S" #define DEFAULT_CONSOLE_LOG_FILENAME @"untitled" -#define DEFAULT_CONSOLE_LOG_FILE_EXTENSION @"log" +#define DEFAULT_CONSOLE_LOG_FILE_EXTENSION @"sql" #define CONSOLE_WINDOW_AUTO_SAVE_NAME @"QueryConsole" @@ -454,7 +454,7 @@ static SPQueryConsole *sharedQueryConsole = nil; */ - (void)_addMessageToConsole:(NSString *)message isError:(BOOL)error { - SPConsoleMessage *consoleMessage = [SPConsoleMessage consoleMessageWithMessage:[[message stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] stringByAppendingString:@";"] date:[NSDate date]]; + SPConsoleMessage *consoleMessage = [SPConsoleMessage consoleMessageWithMessage:[[[message stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] stringByReplacingOccurrencesOfString:@"\n" withString:@" "] stringByAppendingString:@";"] date:[NSDate date]]; [consoleMessage setIsError:error]; |