Skip to main content

normalize_whitespace

Function normalize_whitespace 

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

Collapse whitespace runs into single spaces, trimming the ends.

Delegates to the canonical vtcode_commons::formatting::collapse_whitespace; kept as a named function because persistent-memory callers rely on the normalize_whitespace spelling and the persistent_memory re-export.