Skip to main content

single_line

Function single_line 

Source
pub fn single_line(value: &str) -> Cow<'_, str>
Expand description

Replaces control characters and Unicode line separators with spaces.

Each replaced character becomes one space, keeping the value on one line. Values that need no replacements are borrowed without allocation.