Skip to main content

normalize_eol

Function normalize_eol 

Source
pub fn normalize_eol(content: &str, eol: &str) -> String
Expand description

Normalize line endings in content.

  • “preserve”: return unchanged
  • “lf”: convert all line endings to \n
  • “crlf”: convert all line endings to \r\n