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 48070] New: Preserving leading and trailing spaces XSSFCell
Date Tue, 27 Oct 2009 19:51:23 GMT

           Summary: Preserving leading and trailing spaces XSSFCell
           Product: POI
           Version: 3.5-FINAL
          Platform: All
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: dmonti@linoma.com

I would like to have a string value in a cell that maintains the leading and
trailing spaces. If I set a String value in a cell with leading and trailing
spaces, the value seems to be preserved in the XML, but does not display in
For example:
XSSFCell cell = row.createCell(0);
cell.setCellValue("   XYZ   ");

Yields <si><t>   XYZ   </t></si> in sharedStrings.xml but does not
display the
spaces in Excel.

If you just type the value in Excel you get
<si><t xml:space="preserve">    XYZ    </t></si> 

POI should have some way of preserving these spaces.


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

View raw message