Bug 192981 Leading white space get trimmed in PDF&HTML output.
Build ID: The Eclipse bundled with BIRT 2.1.3 designer all in one Steps To Reproduce: 1.Create a new blank report. 2.Setup data source and data set component 3.Insert a List 4.Insert a DataItem into the detail slot of List 5.Set the value expression of DataItem to " " + row["Column1"] 6.Run the report to produce PDF or HTML 7.the leading white space is disappeared in output More information: The leading white space is preserved in BIRT 2.1.1, but get disappeared in BIRT 2.1.3 or later version. We want to know whether it's expected behavior or a bug.
core/org.eclipse.birt.core.tests/test/org/eclipse/birt/core/format/StringFormatterTest.java
sampleStr.applyPattern( "@@@@@-@@@@!" );
		assertEquals( "943050110", sampleStr.parser( "94305-0110" ) );
		sampleStr.applyPattern( "@@@@@-@@@@" );
		assertEquals( "943050110", sampleStr.parser( "94305-0110" ) );
		
		sampleStr.applyPattern( "@@@@@!" );
		assertEquals( "94305", sampleStr.parser( "94305" ) );
		sampleStr.applyPattern( "@@@@@" );
		assertEquals( "94305", sampleStr.parser( "94305" ) );
		
		sampleStr.applyPattern( "(@@@)-@@@-@@@@!" );
		assertEquals( "6508372345", sampleStr.parser( "(650)-837-2345" ) );
		sampleStr.applyPattern( "(@@@)-@@@-@@@@" );
		assertEquals( "6508372345", sampleStr.parser( "(650)-837-2345" ) );
		sampleStr.applyPattern( "(@@@)-@@@-@@@@!" );
		assertEquals( "65083723456", sampleStr.parser( "(650)-837-23456" ) );
		sampleStr.applyPattern( "(@@@)-@@@-@@@@" );
		assertEquals( "346508372345", sampleStr.parser( "34(650)-837-2345" ) );
	}
	
	public void testTrim()
	{
		StringFormatter sampleStr = new StringFormatter( "Zip Code + 4");
		assertEquals( "650837-2000", sampleStr.format( "6508372000" ) );
		assertEquals( "650837-2000", sampleStr.format( " 6508372000 " ) );
		assertEquals( "     - 650", sampleStr.format( "650 " ) );
	}
	
}