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
}
		borderStyle = style.getBorderRightStyle( );
		if ( hasBorder( borderStyle ) )
		{
			writeSingleBorder( RIGHT, borderStyle,
					style.getBorderRightColor( ),
					style.getProperty( StyleConstants.STYLE_BORDER_RIGHT_WIDTH ),
					rightMargin );
		}
	}
	private void writeSingleBorder( String type, String borderStyle,
			String color, CSSValue width, int margin )
	{
		writer.openTag( "w:" + type );
		writeBorderProperty( borderStyle, color, width, margin );
		writer.closeTag( "w:" + type );
	}
	private void writeBorderProperty( String style, String color,
			CSSValue width, int margin )
	{
		writer.attribute( "w:val", WordUtil.parseBorderStyle( style ) );
		int borderSize = WordUtil.parseBorderSize( PropertyUtil.getDimensionValue( width ) );
		writer.attribute( "w:sz", "double".equals(style)? borderSize/3 : borderSize );
		writer.attribute( "w:space", validateBorderSpace( margin ) );
		writer.attribute( "w:color", WordUtil.parseColor( color ) );
	}
	private int validateBorderSpace( int margin )
	{
		
		int space = (int) WordUtil.twipToPt( margin );