aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-04-28 16:37:18 +0000
committerBibiko <bibiko@eva.mpg.de>2009-04-28 16:37:18 +0000
commitb82bf9095ac830629be4191da4ac8345f4b1a3d7 (patch)
tree151b209d5f9f40e6223044c8f8a95d9b4857c362 /Source/CustomQuery.m
parent355846a0fcaab01aa487b23f4f2f398087f01b0d (diff)
downloadsequelpro-b82bf9095ac830629be4191da4ac8345f4b1a3d7.tar.gz
sequelpro-b82bf9095ac830629be4191da4ac8345f4b1a3d7.tar.bz2
sequelpro-b82bf9095ac830629be4191da4ac8345f4b1a3d7.zip
• MySQL Help:
- fix for link detection of [HELP foo] if foo contains a \n
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m2
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