Function mdbook::utils::collapse_whitespace[][src]

pub fn collapse_whitespace<'a>(text: &'a str) -> Cow<'a, str>

Replaces multiple consecutive whitespace characters with a single space character.