Bug 168816 Set text alignment to inline dynamic text in cell doesn't display properly[0003]
Set text alignment to inline items in cell doesn't display properly[0003] Build number: 2.2.0.v20061220 Steps to reproduce: 1.new a report 2.insert a 1r*1c grid 3.insert two dynamic text items in the cell and input some text in it 4.set the two dynamic text items to display "inline" and set the grid text alignment to center 5.preview in html,web viewer and PDF Expected result: the two items should be in the center Actual result: The two items are in the center in html and web viewer While in PDF,they're not. Error log: N/A
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/HTML2Content.java
/**
	 * Visits the children nodes of the specific node
	 * 
	 * @param ele
	 *            the specific node
	 * @param needEscape
	 *            the flag indicating the content needs escaping
	 * @param cssStyles
	 * @param content 
	 * 			  the parent content of the element
	 * 		       
	 */
	static void processNodes( Element ele, 
			Map cssStyles, IContent content, IContent inlineParent,
			ActionContent action )
	{
		int level=0;
		for ( Node node = ele.getFirstChild( ); node != null; node = node
				.getNextSibling( ) )
		{
			if ( node.getNodeName( ).equals( "value-of" ) ) 
			{
				if ( node.getFirstChild( ) instanceof Element )
				{
					processNodes( (Element) node.getFirstChild( ),
							cssStyles, content, inlineParent, action );
				}
			}
			else if ( node.getNodeName( ).equals( "image" ) )