Skip to main content

text_remove_newlines

Function text_remove_newlines 

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

Remove newlines and collapse whitespace to single spaces.

Converts multi-line text into a single normalized line by splitting on whitespace boundaries and joining with a single space.