Project

General

Profile

Revision 9e0814ef

ID9e0814ef819161213ffbbd5a1e0d68bc70932c1e
Parent 9c82d689
Child 2661d3b8

Added by Andreas Müller over 3 years ago

test trim in Excel import column recognition

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)