From b82bf9095ac830629be4191da4ac8345f4b1a3d7 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 28 Apr 2009 16:37:18 +0000 Subject: =?UTF-8?q?=E2=80=A2=20MySQL=20Help:=20-=20fix=20for=20link=20dete?= =?UTF-8?q?ction=20of=20[HELP=20foo]=20if=20foo=20contains=20a=20\n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CustomQuery.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') 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:@"%@", NSLocalizedString(@"Show MySQL help for", @"show mysql help for"), aUrl, aUrl, aUrl]]; } else -- cgit v1.2.3