Search before asking
Fesod version
main
JDK version
any
Operating system
Linux
Steps To Reproduce
File file = new File("escaped-percent.xlsx");
DataFormatData dataFormat = new DataFormatData();
dataFormat.setFormat("0\\%");
WriteCellData<BigDecimal> cell = new WriteCellData<>(new BigDecimal("5"));
cell.getOrCreateStyle().setDataFormatData(dataFormat);
FesodSheet.write(file)
.head(Collections.singletonList(Collections.singletonList("rate")))
.sheet()
.doWrite(Collections.singletonList(Collections.singletonList(cell)));
System.out.println(FesodSheet.read(file).sheet().doReadSync());
Current Behavior
The \% escape is dropped and the value is multiplied by 100, so the cell that displays as 5% reads
back as 500%.
Expected Behavior
The read value should match what the spreadsheet displays, as it does for every other format.
Anything else?
Found while writing the tests in #1110.
Are you willing to submit a PR?
Search before asking
Fesod version
main
JDK version
any
Operating system
Linux
Steps To Reproduce
Current Behavior
The
\%escape is dropped and the value is multiplied by 100, so the cell that displays as5%readsback as
500%.Expected Behavior
The read value should match what the spreadsheet displays, as it does for every other format.
Anything else?
Found while writing the tests in #1110.
Are you willing to submit a PR?