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
}
		writeBackgroundColor( style.getBackgroundColor( ) );
		writeCellBorders( style );
		writeCellPadding( style );
		String verticalAlign = style.getVerticalAlign( );
		if ( verticalAlign != null )
		{
			writeAttrTag( "w:vAlign", WordUtil
					.parseVerticalAlign( verticalAlign ) );
		}
		String noWrap = CSSConstants.CSS_NOWRAP_VALUE.equalsIgnoreCase( style
				.getWhiteSpace( ) ) ? "on" : "off";
		writeAttrTag( "w:noWrap", noWrap );
	}
	private void writeCellBorders( IStyle style )
	{
		writer.openTag( "w:tcBorders" );
		writeBorders( style, 0, 0, 0, 0 );
		writer.closeTag( "w:tcBorders" );
	}
	private void writeCellPadding( IStyle style )
	{
		int bottomPadding = PropertyUtil.getDimensionValue( style
				.getProperty( StyleConstants.STYLE_PADDING_BOTTOM ) );
		int leftPadding = PropertyUtil.getDimensionValue( style
				.getProperty( StyleConstants.STYLE_PADDING_LEFT ) );
		int topPadding = PropertyUtil.getDimensionValue( style
				.getProperty( StyleConstants.STYLE_PADDING_TOP ) );
		int rightPadding = PropertyUtil.getDimensionValue( style
				.getProperty( StyleConstants.STYLE_PADDING_RIGHT ) );