Summary: | XSSFRichTextString append method looses leading/trailing spaces | ||
---|---|---|---|
Product: | POI | Reporter: | Guerrero <guerrero747> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | P2 | ||
Version: | 3.8-dev | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Diff for method append on XSSFRichTextString |
Description
Guerrero
2012-02-23 11:15:51 UTC
Created attachment 28371 [details]
Diff for method append on XSSFRichTextString
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!" |