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

--- Comment #3 from Yegor Kozlov <ye...@dinom.ru> ---
A very good catch, thanks!

Fixed in r1397499, junit aded.

Yegor

(In reply to comment #1)
> In addition to this issue RichText is also trimmed if there are leading or
> trailing spaces.
> This issue is similar to Bug 48070. Probably it should be treated as
> separate issue.
> 
> I have localized the problem comes from:
> org.apache.poi.xssf.streaming.SheetDataWriter
> In metod 'writeCell' fragment:
> 
>             case Cell.CELL_TYPE_STRING: {
>                 _out.write(" t=\"inlineStr\">");
>                 _out.write("<is><t>");
>                 outputQuotedString(cell.getStringCellValue());
>                 _out.write("</t></is>");
>                 break;
>             }
> a check should be done if value contains leading/trailing spaces and then
> handled differently:
> 
>  _out.write("<is><t xml:space=\"preserve\">"); 
> instead of:
>  _out.write("<is><t>");

-- 
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