Skip to main content

wrap_text

Function wrap_text 

Source
pub fn wrap_text(line: &str, column_width: usize) -> String
Expand description

Wraps text to column_width, joining wrapped segments with <br/> tags. A column_width of 0 leaves the line untouched (no wrapping is possible).