Skip to content

Commit

Permalink
fix: apply excel format for blank cells
Browse files Browse the repository at this point in the history
Fixes #159
  • Loading branch information
mlopezFC authored and paodb committed Nov 11, 2024
1 parent 6cb979c commit 3194a8c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ private void buildCell(Object value, Cell cell, Column<T> column, T item) {
}
if (value == null) {
PoiHelper.setBlank(cell);
if(excelFormat != null) {
applyExcelFormat(cell, excelFormat, cellStyles);
}
} else if (value instanceof Number) {
excelFormat = (excelFormat!=null)?excelFormat:"0";
cell.setCellValue(((Number) value).doubleValue());
Expand Down

0 comments on commit 3194a8c

Please sign in to comment.