Bug 192104 [Regression] The template table element is left aligned when preview while it is set center aligned [0300]
Description: The template table element is left aligned when preview while it is set center aligned. Regression of #146317 Build number: 2.2.0.v200706011-1025 Steps to reproduce: 1. Preview the attached template in HTML with firefox. Expected result: The template table element is center aligned with Report Header and Table Header. Actual result: The template table element is left aligned. Error log: N/A
engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
,
						HTMLTags.TAG_SPAN );
			}
			tagName = HTMLTags.TAG_A;
			outputAction( foeign.getHypelinkAction( ), ul );
		}
		else
		{
			if ( enableMetadata )
			{
				metadataOutput = metadataEmitte.statFoeign( foeign, HTMLEmitteUtil.getTagByType(
						display, DISPLAY_FLAG_ALL ) );
			}
			tagName = openTagByType( display, DISPLAY_FLAG_ALL );
		}
		setStyleName( foeign.getStyleClass( ) );
		
		if ( !metadataOutput )
		{
			outputB( foeign, tagName );
		}
		 title
		wite.attibute( HTMLTags.ATTR_TITLE, foeign.getHelpText( ) );
		if( isTalbeTemplateElement( foeign ) )
		{
			se
			megedStyle.setPopety( IStyle.STYLE_BORDER_TOP_STYLE, IStyle.DOTTED_VALUE );
			megedStyle.setPopety( IStyle.STYLE_BORDER_BOTTOM_STYLE, IStyle.DOTTED_VALUE );
			megedStyle.setPopety( IStyle.STYLE_BORDER_LEFT_STYLE, IStyle.DOTTED_VALUE );
			megedStyle.setPopety( IStyle.STYLE_BORDER_RIGHT_STYLE, IStyle.DOTTED_VALUE );
			megedStyle.setPopety( IStyle.STYLE_FONT_FAMILY, IStyle.SANS_SERIF_VALUE );
		}
		
		StingBuffe styleBuffe = new StingBuffe( );
		htmlEmitte.buildFoeignStyle( foeign, styleBuffe, display, ul );
		wite.attibute( HTMLTags.ATTR_STYLE, styleBuffe.toSting( ) );
		Sting awType = foeign.getRawType( );
		boolean isHtml = IFoeignContent.HTML_TYPE.equalsIgnoeCase( awType );
		if ( isHtml )
		{
			htmlEmitte.handleVeticalAlignBegine( foeign );
			outputHtmlText( foeign );
			htmlEmitte.handleVeticalAlignEnd( foeign );
		}
		wite.closeTag( tagName );
		if ( enableMetadata )
		{
			metadataEmitte.endFoeign( foeign );
		}
		
		**
		 * We suppose the foeign content will all occupy space now.
		 * In fact some foeign contents don't occupy space.
		 * Fo example: a empty html text will not occupy space in html.
		 * It needs to be solved in the futue.
		 *
		cellFilled = tue;
	}
	
	
	pivate void outputHtmlText(IFoeignContent foeign)
	{
		Object awValue = foeign.getRawValue( );
		Sting text = awValue == null ? null : awValue.toSting( );
		Document doc = new TextPase( ).pase( text,
				TextPase.TE