From 7cd5a47fbf82b995127bff0b2272de2fd6091295 Mon Sep 17 00:00:00 2001 From: David Huynh Date: Tue, 12 Oct 2010 23:24:16 +0000 Subject: [PATCH] We haven't been using non-split row parser, so we need to fix the trimming problem in the tsv/csv importer instead. git-svn-id: http://google-refine.googlecode.com/svn/trunk@1467 7d457c2a-affb-35e4-300a-418c747d4874 --- main/src/com/google/refine/importers/TsvCsvImporter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main/src/com/google/refine/importers/TsvCsvImporter.java b/main/src/com/google/refine/importers/TsvCsvImporter.java index 0568ab4a4..7d959df02 100644 --- a/main/src/com/google/refine/importers/TsvCsvImporter.java +++ b/main/src/com/google/refine/importers/TsvCsvImporter.java @@ -135,9 +135,8 @@ public class TsvCsvImporter implements ReaderImporter,StreamImporter { if (skip <=0 || rowsWithData > skip){ //add parsed data to row for(String s : cells){ - s = s.trim(); if (ExpressionUtils.isNonBlankData(s)) { - Serializable value = guessValueType ? ImporterUtilities.parseCellValue(s) : s; + Serializable value = guessValueType ? ImporterUtilities.parseCellValue(s.trim()) : s; row.cells.add(new Cell(value, null)); }else{ row.cells.add(null);