Skip to content

Fixed-width input is always trimmed, regardless of trimValues setting #15

Description

@geert3

When reading a CSV with fixed width, white space is always trimmed. See CsvRawReader::parseFixedLine

values[i] = values[i].trim();

In my use-case, I have leading white space that should remain intact. I see several possible solutions:

  • only trim trailing white space for fixed-width input
  • trim white space only if 'trimValues' property is true (and perhaps make it true by default for fixed-width input)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions