···53075307// breaks word into n lines based on width. Returns list of new lines and remainder
53085308fn break_word(word: &str, width: usize) -> (Vec<Cow<'_, str>>, &str) {
53095309 let mut new_lines: Vec<Cow<'_, str>> = Vec::new();
53105310- // split on a char boundary so a multi-byte UTF-8 char straddling `width`
53115311- // can't panic.
53105310+ // Split on a char boundary so a multi-byte UTF-8 char straddling `width`
53115311+ // doesn't cause a panic.
53125312 let (first, mut remainder) = word.split_at(word.floor_char_boundary(width));
53135313 new_lines.push(Cow::from(first));
53145314