Skip to main content

normalize_line_endings

Function normalize_line_endings 

Source
pub fn normalize_line_endings(data: &mut Vec<u8>)
Expand description

Normalises all CR-only and CRLF line endings to LF throughout the buffer, then ensures the buffer ends with exactly one \n.