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.
pub fn normalize_line_endings(
text: &str,
ending: LineEndingStyle,
) -> Cow<'_, str>Normalize line endings in text.
Converts all line endings (CRLF, CR, LF) to the specified style.