Trim column names on import.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@461 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
a0b119b346
commit
a2db5590ac
@ -55,9 +55,9 @@ public class TsvCsvImporter implements Importer {
|
||||
|
||||
first = false;
|
||||
for (int c = 0; c < cells.size(); c++) {
|
||||
String cell = cells.get(c);
|
||||
String cell = cells.get(c).trim();
|
||||
if (cell.startsWith("\"") && cell.endsWith("\"")) {
|
||||
cell = cell.substring(1, cell.length() - 1);
|
||||
cell = cell.substring(1, cell.length() - 1).trim();
|
||||
}
|
||||
|
||||
if (nameToIndex.containsKey(cell)) {
|
||||
|
Loading…
Reference in New Issue
Block a user