Skip to main content

normalize_line_endings

Function normalize_line_endings 

Source
pub fn normalize_line_endings(
    text: &str,
    ending: LineEndingStyle,
) -> Cow<'_, str>
Expand description

Normalize line endings in text.

Converts all line endings (CRLF, CR, LF) to the specified style.