Skip to main content

one_line

Function one_line 

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

Collapse to a single line of single-spaced words.

For a field that is displayed inline, such as a finding title or a one-line verdict. A model that returns a paragraph there would otherwise break the layout of everything around it.