Skip to content

Commit 453c7d1

Browse files
committed
Only skip white space if that is not the delimiter.
1 parent 8a3ca1a commit 453c7d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/csv/Lexer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Token nextToken(final Token token) throws IOException {
8989
int c = reader.read();
9090

9191
if (ignoreSurroundingSpaces) {
92-
while (c == ' ' || c == '\t') {
92+
while ((delimiter != ' ' && c == ' ') || (delimiter != '\t' && c == '\t')) {
9393
c = reader.read();
9494
}
9595
}

0 commit comments

Comments
 (0)