解决读取颜色数据生成String时末尾多一个空格的问题,并且增加了测试文件 #2440
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #2346
我发现该格式的数字在读取为字符串的时候,由于该格式的dataFormat最后多留了一个空格,最后在转成字符串之前的处理没有将其删掉,所以会出现读取多一个空格的情况。我尝试在
excel\metadata\format\DataFormatter.java
的cleanFormatForNumber()
中增加了判断dataFormat最后多余的空格,并将其删去,解决了这个问题。如果还有其他什么问题,请告诉我,谢谢!