Skip to content

Cannot use \n as segmentTerminator. #27

@huynguyenwork86

Description

@huynguyenwork86

Here is what I did:
1)I have an edi file that use \ as segmentTerminator.
2)I define a rule for it and everything is working fine.
3)I change to use the new line "\n" as segmentTerminator. I execute the same code end receive an error of "isa segment has not enough input data, error segment line: ''"
4)After debug, I find that the func NewScanner(fd io.Reader, args ...string) Scanner { has removeNewLine is set to true.
5)I change it to false and execute the code again but receive the same error with IEA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions