Skip to main content

normalize_ws

Function normalize_ws 

Source
pub fn normalize_ws(s: &str) -> String
Expand description

Collapse whitespace runs to single spaces and trim — the prose normalization producers apply to inline content. Verbatim text is the exception: it is kept as authored.