To clean up and simplify code that handles white space between segments, implement and use two distinct options (config properties): ignore_whitespace_between_segments, output_edi_wrap. The first option is for reading, defaults to true in order to handle Linux or Windows wrapping; the latter specifies the output wrapping style: Unwrapped, WrappedForLinux ("\r"), WrappedForWindows ("\r\n").
To clean up and simplify code that handles white space between segments, implement and use two distinct options (config properties): ignore_whitespace_between_segments, output_edi_wrap. The first option is for reading, defaults to true in order to handle Linux or Windows wrapping; the latter specifies the output wrapping style: Unwrapped, WrappedForLinux ("\r"), WrappedForWindows ("\r\n").