Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Trim leading and trailing whitespaces in a field, per the CSV spec (such... #28

wants to merge 1 commit into


None yet
3 participants

... as it is)

@koles I've run into an issue that this commit would resolve. Any plans to merge this fairly minor change?

koles commented on ee917ad Nov 20, 2014

First, my apologies for the delayed response.

Which CSV spec are you referring to? I'd like to keep ya-csv compliant with https://tools.ietf.org/html/rfc4180 which clearly states that "spaces are considered part of a field and should not be ignored."

I don't mind adding this feature but it cannot be the default behavior.


petersen-poul replied Nov 25, 2014

I've forgotten why I even ran into this problem ;) But you are right, rfc4180 does say that. I think the confusion is how to handle leading and trailing spaces in a non-quoted field. I wish I could remember where I ran into this...

I'd love to see this change as an optional feature at least...

@koles koles closed this Nov 16, 2016


koles commented Nov 16, 2016

If anybody still care about this functionality, I'm perfectly happy to accept a pull request that adds this feature as optional and includes a documentation update (javadoc comments and the README file).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment