Bug 144613 Blank page when set group page break before as always.
Description: Blank page when set group page break before as always. Steps to reproduce: 1. Insert a table. 2. Add a group, set group page break before to always 3. Delete table header and footer 4. Preview in html and pdf Expected result: No blank page Actual result: A blank page in html. If you set group page-break-after to always and preview, no blank page.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFPageLM.java
IContent con = context.getUnresolvedContent( );
		if ( !( con instanceof IAutoTextContent ) )
		{
			return;
		}
		IAutoTextContent totalPageContent = (IAutoTextContent) con;
		if ( null != totalPageContent )
		{
			NumberFormatter nf = new NumberFormatter( );
			String patternStr = totalPageContent.getComputedStyle( )
					.getNumberFormat( );
			nf.applyPattern( patternStr );
			totalPageContent.setText( nf.format( pageNumber ) );
			ITextArea totalPageArea = null;
			ChunkGenerator cg = new ChunkGenerator( totalPageContent );
			if ( cg.hasMore( ) )
			{
				FontSplitter fontSplitter = new FontSplitter( cg.getNext( ),
						totalPageContent );
				if ( fontSplitter.hasMore( ) )
				{
					Chunk c = fontSplitter.getNext( );
					Dimension d = new Dimension(
							(int) ( c.getFontInfo( )
									.getWordWidth( c.getText( ) ) * PDFConstants.LAYOUT_TO_PDF_RATIO ),
							(int) ( c.getFontInfo( ).getWordHeight( ) * PDFConstants.LAYOUT_TO_PDF_RATIO ) );
					totalPageArea = (ITextArea) AreaFactory
							.createBlockTextArea( c.getText( ),
									totalPageContent, 0,
									c.getText( ).length( ), c.getFontInfo( ), d );