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
CSSValue borderWidth )
	{
		writer.openTag( "w:bdr" );
		writeBorderProperty( borderStyle, color, borderWidth, 0 );
		writer.closeTag( "w:bdr" );
	}
	private boolean needNewParagraph( String txt )
	{
		return ( "\n".equals( txt ) || "\r".equalsIgnoreCase( txt ) || "\r\n"
				.equals( txt ) );
	}
	public void startParagraph( IStyle style, boolean isInline,
			int paragraphWidth )
	{
		writer.openTag( "w:p" );
		writer.openTag( "w:pPr" );
		writeSpacing( ( style.getProperty( StyleConstants.STYLE_MARGIN_TOP ) ),
				( style.getProperty( StyleConstants.STYLE_MARGIN_BOTTOM ) ) );
		writeAlign( style.getTextAlign( ), style.getDirection( ) );
		int indent = PropertyUtil.getDimensionValue( style
				.getProperty( StyleConstants.STYLE_TEXT_INDENT ),
				paragraphWidth ) / 1000 * 20;
		
		int leftMargin = PropertyUtil.getDimensionValue( style
				.getProperty( StyleConstants.STYLE_MARGIN_LEFT ),
				paragraphWidth ) / 1000 * 20;
		
		int rightMargin = PropertyUtil.getDimensionValue( style
				.getProperty( StyleConstants.STYLE_MARGIN_RIGHT ),
				paragraphWidth ) / 1000 * 20;