Patch applied - closed #315

This commit is contained in:
Tom Morris 2013-03-06 21:45:54 -05:00
parent d8d82bf8b7
commit a2a8f4af2e

View File

@ -42,6 +42,7 @@ import java.io.LineNumberReader;
import java.io.Reader; import java.io.Reader;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.Comparator; import java.util.Comparator;
import java.util.HashMap; import java.util.HashMap;
@ -126,14 +127,10 @@ public class SeparatorBasedImporter extends TabularImportingParserBase {
ArrayList<Object> cells = new ArrayList<Object>(); ArrayList<Object> cells = new ArrayList<Object>();
String[] tokens = parser.parseLineMulti(line); String[] tokens = parser.parseLineMulti(line);
for (String s : tokens){ cells.addAll(Arrays.asList(tokens));
cells.add(s);
}
while (parser.isPending()) { while (parser.isPending()) {
tokens = parser.parseLineMulti(lnReader.readLine()); tokens = parser.parseLineMulti(lnReader.readLine());
for (String s : tokens) { cells.addAll(Arrays.asList(tokens));
cells.add(s);
}
} }
return cells; return cells;
} }