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:
David Huynh 2010-04-13 06:28:13 +00:00
parent a0b119b346
commit a2db5590ac

View File

@ -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)) {