diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-04-28 16:37:18 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-04-28 16:37:18 +0000 |
commit | b82bf9095ac830629be4191da4ac8345f4b1a3d7 (patch) | |
tree | 151b209d5f9f40e6223044c8f8a95d9b4857c362 | |
parent | 355846a0fcaab01aa487b23f4f2f398087f01b0d (diff) | |
download | sequelpro-b82bf9095ac830629be4191da4ac8345f4b1a3d7.tar.gz sequelpro-b82bf9095ac830629be4191da4ac8345f4b1a3d7.tar.bz2 sequelpro-b82bf9095ac830629be4191da4ac8345f4b1a3d7.zip |
• MySQL Help:
- fix for link detection of [HELP foo] if foo contains a \n
-rw-r--r-- | Source/CustomQuery.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index ed3486dc..b209409c 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1645,7 +1645,7 @@ traps enter key and // TODO how to catch in HELP 'grant' last see [HELP SHOW GRANTS] ?? it's ridiculous aRange = [desc rangeOfRegex:@"\\[HELP ([^ ]*?)\\]" options:RKLNoOptions inRange:NSMakeRange(aRange.location+aRange.length+53, [desc length]-53-aRange.location-aRange.length) capture:1 error:&err1]; if(aRange.location != NSNotFound) { - aUrl = [desc substringWithRange:aRange]; + aUrl = [[desc substringWithRange:aRange] stringByReplacingOccurrencesOfString:@"\n" withString:@" "]; [desc replaceCharactersInRange:aRange withString:[NSString stringWithFormat:@"<a title='%@ “%@”' href='%@' class='internallink'>%@</a>", NSLocalizedString(@"Show MySQL help for", @"show mysql help for"), aUrl, aUrl, aUrl]]; } else |