https://issues.apache.org/bugzilla/show_bug.cgi?id=52745

--- Comment #2 from Guerrero <guerrero...@gmail.com> 2012-02-23 11:26:01 UTC ---
In our development we needed to append to a XSSFRichTextString multiple
substrings each one with different font, so we used the append method. There
was a problem because it removes the leading / trailing spaces and joined
words. 

For example:


XSSFRichTextString text = cell.getRichStringCellValue();
text.append("Hello ");
text.append("World!");

Makes "HelloWorld!" 

and

text.append("Hello");
text.append(" World!");

also makes "HelloWorld!" 

We have modified the append method to call preserveSpaces and get "Hello
World!"

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to