Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use '\n' the line feed as a Segment seperator #24

Closed
cleftheris opened this issue Oct 13, 2016 · 1 comment
Closed

Cannot use '\n' the line feed as a Segment seperator #24

cleftheris opened this issue Oct 13, 2016 · 1 comment
Labels

Comments

@cleftheris
Copy link
Contributor

cleftheris commented Oct 13, 2016

Some times \n the line feed is used as the special character for Segment Termination. This is considered as whitespace throughout the EdiTextReader. First mentioned #19

@cleftheris
Copy link
Contributor Author

since release v1.8.1 there is now support for this.
You can change the control characters like so

var grammar = EdiGrammar.NewEdiFact();
grammar.SetAdvice(segmentNameDelimiter: '+',
                      dataElementSeparator: '+',
                      componentDataElementSeparator: ':', 
                      segmentTerminator: '\n',
                      releaseCharacter: '?',
                      reserved: ' ',
                      decimalMark: '.');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant