Skip to main content

wrap_text

Function wrap_text 

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

Greedy word wrap that keeps existing line breaks (spec section 7).