Skip to main content

normalize_inline_whitespace

Function normalize_inline_whitespace 

Source
pub fn normalize_inline_whitespace<T: AsRef<str>>(text: T) -> String
Expand description

Collapse repeated whitespace in-place while preserving single spaces. Collapse runs of whitespace into single spaces and trim.