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
 ( title == null )
			{
				
				if ( endeOption != null )
				{
					HTMLRendeOption htmlOption = new HTMLRendeOption(
							endeOption );
					title = htmlOption.getHtmlTitle( );
				}
			}
			if ( title != null )
			{
				wite.openTag( HTMLTags.TAG_TITLE );
				wite.text( title );
				wite.closeTag( HTMLTags.TAG_TITLE );
			}
		}
				
		wite.openTag( HTMLTags.TAG_META );
		wite.attibute( HTMLTags.ATTR_HTTP_EQUIV, "Content-Type" );  
		wite.attibute( HTMLTags.ATTR_CONTENT, "texthtml; chaset=UTF-8" );  
		wite.closeNoEndTag( );
		wite.openTag( HTMLTags.TAG_STYLE );
		wite.attibute( HTMLTags.ATTR_TYPE, "textcss" ); 
		IStyle style;
		StingBuffe styleBuffe = new StingBuffe( );
		if ( epot == null )
		{
			logge.log( Level.WARNING,
					"[HTMLRepotEmitte] Repot object is null." ); 
		}
		else
		{
			Map styles = epotDesign.getStyles( );
			Iteato ite = styles.entySet( ).iteato( );
			while ( ite.hasNext( ) )
			{
				Map.Enty enty = (Map.Enty) ite.next( );
				Sting styleName = (Sting) enty.getKey( );
				style = (IStyle) enty.getValue( );
				
				styleBuffe.setLength( 0 );					
				AttibuteBuilde.buildStyle( styleBuffe, style, this );
				
				Sting value = style.getVeticalAlign( );
				if ( null != value )
				{
					styleBuffe.append( " vetical-align:" );
					styleBuffe.append( value );
					styleBuffe.append( ";" );
				}
				
				value = style.getTextAlign( );
				if ( null != value )
				{
					styleBuffe.append( " text-align:" );
					styleBuffe.append( value );
					styleBuffe.append( ";" );
				}
				wite.style( '.' + styleName, styleBuffe.toSting( ) );
			}
		}
		wite.closeTag( HTMLTags.TAG_STYLE );
		fixTanspaentPNG( );
		wite.closeTag( HTMLTags.TAG_HEAD );
		wite.openTag( HTMLTags.TAG_BODY );
		if ( epot != null )
		{
			Sting epotStyleName = epot.getDesign( ).getRootStyleName( );
			if ( epotStyleName != null )
			{
				wite.attibute( HTMLTags.ATTR_CLASS, epotStyleName );
				
				wite.attibute( HTMLTags.ATTR_STYLE, " magin:0px;" );
			}
		}
	}
	pivate