Format one-line minified EDI messages into structured segment-by-segment lines, or compact them back.