mirror of https://github.com/apache/poi.git
[bug-63211] fix issue with escaped % in custom number format
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b9d1e9c27f
commit
a1a169334f
|
@ -606,7 +606,10 @@ public class DataFormatter {
|
|||
|
||||
}
|
||||
|
||||
private String cleanFormatForNumber(String formatStr) {
|
||||
private String cleanFormatForNumber(String formatStrIn) {
|
||||
// this replace is done to fix https://bz.apache.org/bugzilla/show_bug.cgi?id=63211
|
||||
String formatStr = formatStrIn.replace("\\%", "\'%\'");
|
||||
|
||||
StringBuilder sb = new StringBuilder(formatStr);
|
||||
|
||||
if (emulateCSV) {
|
||||
|
|
Loading…
Reference in New Issue