Function normalize_whitespace

Source
pub fn normalize_whitespace(string: &str) -> String
Expand description

Trims whitespace and replaces all linebreaks with: \n\n.

ยงArguments

  • string - The string to normalize.