devaskim opened a new pull request, #1597:
URL: https://github.com/apache/poi/pull/1597

   Two more `CellFormat` cases where it differs from Excel, found after #1592.
   
   **A leading decimal point is the decimal point.** In `.00` the point came 
before any digit placeholder, so it was read as literal text and the zeros 
became integer digits: 0.5 was shown as `.01`. As in Excel, it is now the 
decimal point and the integer digits are still shown, as `#.00` does: 0.5 is 
`.50` and 12.5 is `12.50`.
   
   **An empty section shows nothing.** Excel files use empty sections to hide 
values: `0;-0;;@` hides zeros, `0;-0;` does the same and `;;;` hides every 
value. `CellFormat` skipped an empty section, so the next one took its place: 
`0;-0;;@` showed zero as `0`, and `;;;` failed with an 
`IndexOutOfBoundsException`. Each separator that no section takes now adds an 
empty section, which shows `""`. A separator inside quotes still belongs to its 
section.
   
   Both come with tests in `TestCellFormat`.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to