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
This commit is contained in:
David Huynh 2010-10-12 23:24:16 +00:00
parent facecaa35d
commit 7cd5a47fbf

View File

@ -135,9 +135,8 @@ public class TsvCsvImporter implements ReaderImporter,StreamImporter {
if (skip <=0 || rowsWithData > skip){ if (skip <=0 || rowsWithData > skip){
//add parsed data to row //add parsed data to row
for(String s : cells){ for(String s : cells){
s = s.trim();
if (ExpressionUtils.isNonBlankData(s)) { 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)); row.cells.add(new Cell(value, null));
}else{ }else{
row.cells.add(null); row.cells.add(null);