pub fn normalize_eol(bytes: &[u8]) -> Vec<u8> ⓘExpand description
Returns a copy of bytes with every \r\n and lone \r reduced to \n.
For input that is already LF-only this returns an identical byte sequence, so
callers that compare via eol_eq see no behavior change for LF content.