poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52745] XSSFRichTextString append method looses leading/trailing spaces
Date Thu, 23 Feb 2012 11:26:01 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52745

--- Comment #2 from Guerrero <guerrero747@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-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message