Bug 416105 Docx output: leading and trailing whitespaces of a label are removed
I have two simple labels in my report. The first label has my given name as value with a space at the end "Martin ". The second labels value is my lastname "Burgler". If I generate the report as docx output the whitespace is removed. I get as result "MartinBurgler". If I use pdf or doc as output format the result is as expected "Martin Burgler".
engine/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/writer/AbstractWordXmlWriter.java
float bottomSpacingValue = PropertyUtil.getDimensionValue( bottom );
		writeSpacing( WordUtil.milliPt2Twips( topSpacingValue ) / 2, WordUtil
				.milliPt2Twips( bottomSpacingValue ) / 2 );
	}
	private void writeSpacing( int beforeValue, int afterValue )
	{
		writer.openTag( "w:spacing" );
		writer.attribute( "w:before", beforeValue );
		writer.attribute( "w:after", afterValue );
		writer.closeTag( "w:spacing" );
	}
	protected void writeAutoText( int type )
	{
		writer.openTag( "w:instrText" );
		if ( type == IAutoTextContent.PAGE_NUMBER )
		{
			writer.text( "PAGE" );
		}
		else if ( type == IAutoTextContent.TOTAL_PAGE )
		{
			writer.text( "NUMPAGES" );
		}
		writer.closeTag( "w:instrText" );
	}
	private void writeString( String txt, IStyle style )
	{
		if ( txt == null )
		{
			return;
		}