Bug 212701 Fail to render reportlet in birt:report with div container[0603]
Description: Fail to render reportlet when set container to div in report tab. Build number:2.3.0.v20071212 Steps to reproduce: 1. Deploy birt or create new birt web project. 2. preview attached jsp file. Expected result: Display chart reportlet only. Actual result: Display all report content out. Error log:n/a
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/ReportTag.java
int end = head.toLowerCase( ).indexOf( "</script>", start ); 
			if ( end > 0 )
				script = script + head.substring( start, end + 9 ) + "\n"; 
		}
		return script;
	}
	/**
	 * Handle head content
	 * 
	 * @param content
	 * @return
	 */
	protected String __handleHead( String content )
	{
		if ( content == null )
			return BLANK_STRING;
		String head = BLANK_STRING;
		try
		{
			Pattern p = Pattern.compile( "<\\s*head[^\\>]*\\>", 
					Pattern.CASE_INSENSITIVE );
			Matcher m = p.matcher( content );
			if ( m.find( ) )
			{
				int start = m.end( );
				int end = content.toLowerCase( ).indexOf( "</head>" ); 
				head = content.substring( start + 1, end );
			}
		}
		catch ( Exception e )