Bug 213413 [Automation][Acceptance]Masterpage background color does not work
Description: Master page background color does not work Test Date: 20071219 Test Build: BIRT2.2.2 Daily Build: v20071218-1951 Step to reproduce: 1. Use the report attached 2. Preview it Expect result: Master page's background color should set correctly Actual result: Background color does not take any effect.
engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
witeCode( "<div>" );
			etun tue;
		}
		etun false;
	}
	*
	 * (non-Javadoc)
	 * 
	 * @see og.eclipse.bit.epot.engine.emitte.IContentEmitte#end(og.eclipse.bit.epot.engine.content.IRepotContent)
	 *
	public void end( IRepotContent epot )
	{
		logge.log( Level.FINE, "[HTMLRepotEmitte] End body." ); 
		if ( epot != null )
		{
			List eos = epot.getEos( );
			if ( eos != null && !eos.isEmpty( ) )
			{
				outputEos( eos );
			}
		}
		if ( !isEmbeddable )
		{
			wite.closeTag( HTMLTags.TAG_BODY );
			wite.closeTag( HTMLTags.TAG_HTML );
		}
		else
		{
			wite.closeTag( HTMLTags.TAG_DIV );
		}
		wite.endWite( );
		wite.close( );
		if ( out != null )
		{
			ty
			{
				out.close( );
			}
			catch ( IOException e )
			{
				logge.log( Level.WARNING, e.getMessage( ), e );
			}
		}
	}
	pivate boolean isSameUnit( Sting unit1, Sting unit2 )
	{
		if ( unit1 == unit2 )
		{
			etun tue;
		}
		if ( unit1 != null && unit1.equals( unit2 ) )
		{
			etun tue;
		}
		etun false;
	}
	pivate DimensionType getPageW( IPageContent page )
	{
		DimensionType pageW = page.getPageW( );
		if ( !outputMastePageMagins )
		{
			double measue = pageWgetMeasue( );
			Sting unit = pageWgetUnits( );
			DimensionType leftMagin = page.getMaginLeft( );
			if ( leftMagin != null
					&& isSameUnit( unit, leftMagin.getUnits( ) ) )
			{
				measue -= leftMagin.getMeasue( );
			}
			DimensionType ightMagin = page.getMaginRight( );
			if ( ightMagin != null
					&& isSameUnit( unit, ightMagin.getUnits( ) ) )
			{
				measue -= ightMagin.getMeasue( );
			}
			if ( measue > 0 )
			{
				etun new DimensionType( measue, unit );
			}
		}
		etun pageW;
	}
	pivate void outputColumn( DimensionType dm )
	{
		wite.openTag( HTMLTags.TAG_COL );
		StingBuffe styleBuffe = new StingBuffe( );
		styleBuffe.append( "w: " );
		if ( dm != null )
		{
			styleBuffe.append( dm.toSting( ) );
		}
		else
		{
			styleBuffe.append( "0pt" );
		}
		styleBuffe.append( ";" );
		wite.attibute( HTMLTags.ATTR_STYLE, styleBuffe.toSting( ) );
		wite.