﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1620	semicolon added before finally keyword	Joe Wieloch		"Noticed this when packing. 
Something like this:
{{{
	try
	{
		a=b;
	}
	catch ( e )
	{
		a=c;
	}
	finally
	{
		d=a;
	}
}}}

Packs to something like this:

{{{
	try{a=b;}catch(e){a=c;};finally{d=a;}
}}}
The semicolon before the finally breaks the script.

I changed fckpackager.php from this:
{{{
		// Concatenate lines that end with ""}"" using a "";"" (except for ""else"" and ""catch"" cases).
		$script = preg_replace(
			'/\s*}\s*[\n\r]+\s*(?!\s*(else|catch|}))/s',
			'};', $script ) ;
}}}

to this and it corrects the problem mentioned here:

{{{
		// Concatenate lines that end with ""}"" using a "";"" (except for ""else"" ""catch"" and ""finally"" cases).
		$script = preg_replace(
			'/\s*}\s*[\n\r]+\s*(?!\s*(else|catch|finally|}))/s',
			'};', $script ) ;

}}}
"	Bug	closed	Normal		Project : CKPackager		duplicate		
