Skip to main content

preferred_line_ending

Function preferred_line_ending 

Source
pub fn preferred_line_ending(content: &str) -> &'static str
Expand description

Dominant line ending in content for line-oriented insert separators.

Prefer CRLF when present, else bare CR, else LF. Empty content uses LF.