Revision 9e0814ef
Added by Andreas Müller almost 6 years ago
cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/ExcelUtils.java | ||
---|---|---|
111 | 111 |
cell = row.getCell(c); |
112 | 112 |
if(cell != null) { |
113 | 113 |
String str = cell.toString(); |
114 |
str = (str == null)? null : str.trim(); |
|
114 | 115 |
//TODO better make case sensitive, but need to adapt all existing imports for this |
115 |
columns.add(str == null? null : str.trim());
|
|
116 |
columns.add(str); |
|
116 | 117 |
if(logger.isDebugEnabled()) { logger.debug("Cell #" + c + ": " + str); } |
117 | 118 |
} else { |
118 | 119 |
if(logger.isDebugEnabled()) { logger.debug("Cell #" + c + " is null"); } |
Also available in: Unified diff
test trim in Excel import column recognition