Skip to main content

one_line

Function one_line 

Source
fn one_line(text: &str, max_chars: usize) -> Option<String>
Expand description

text as one line: runs of blank space and line breaks made one space, none at either end, and max_chars characters at most. None if that leaves nothing, or if the text was not read as it was written: a page that is not in UTF-8 says nothing rather than something garbled.