Skip to content

Commit 7391b1a

Browse files
committed
cell content over 32767 is now truncated
1 parent 2ded694 commit 7391b1a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- cell content over 32767 is now truncated, see [Worksheet and workbook specifications and limits](https://support.microsoft.com/en-gb/office/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3)
13+
1014
## [0.7.0] - 2023-09-28
1115

1216
### Added

src/main/java/org/fugerit/java/github/issue/export/helper/PoiHelper.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ public static void addRow( String[] values, int index, Sheet sheet, CellStyle st
4646
for ( int k=0; k<values.length; k++ ) {
4747
Cell cell = row.createCell( k );
4848
String currentCell = values[k];
49+
if ( currentCell.length() > 32767 ) {
50+
currentCell = currentCell.substring( 0, 32000 )+" [...]";
51+
}
4952
if ( currentCell == null || "null".equalsIgnoreCase( currentCell ) ) {
5053
currentCell = "";
5154
}

0 commit comments

Comments
 (0)