pub fn hardwrap(s: &str, limit: usize, preserve_space: bool) -> StringExpand description
Hard-wrap s so no visible line exceeds limit columns.
Breaks occur at exact width boundaries, including inside words. ANSI escapes are copied verbatim and contribute zero width. If preserve_space is false, a space that lands at a break boundary is dropped.