mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
change position of trim
This commit is contained in:
parent
99dd394aff
commit
d3f946dd33
@ -332,13 +332,13 @@ public final class CsvParser implements Closeable, Serializable {
|
|||||||
|
|
||||||
// 忽略多余引号后的换行符
|
// 忽略多余引号后的换行符
|
||||||
field = StrUtil.trim(field, 1, (c-> c == CharUtil.LF || c == CharUtil.CR));
|
field = StrUtil.trim(field, 1, (c-> c == CharUtil.LF || c == CharUtil.CR));
|
||||||
|
|
||||||
|
field = StrUtil.unWrap(field, textDelimiter);
|
||||||
|
field = StrUtil.replace(field, "" + textDelimiter + textDelimiter, textDelimiter + "");
|
||||||
if(this.config.trimField){
|
if(this.config.trimField){
|
||||||
// issue#I49M0C@Gitee
|
// issue#I49M0C@Gitee
|
||||||
field = StrUtil.trim(field);
|
field = StrUtil.trim(field);
|
||||||
}
|
}
|
||||||
|
|
||||||
field = StrUtil.unWrap(field, textDelimiter);
|
|
||||||
field = StrUtil.replace(field, "" + textDelimiter + textDelimiter, textDelimiter + "");
|
|
||||||
currentFields.add(field);
|
currentFields.add(field);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user