Skip to main content

wrap_detail

Function wrap_detail 

Source
pub fn wrap_detail(text: &str, width: usize, max_lines: usize) -> Vec<String>
Expand description

Break text into at most max_lines lines of at most width characters, at spaces. A word wider than a line is split. When the text does not fit, the last line ends in “..” (never wider than width).