Function termimad::wrap::hard_wrap_lines[][src]

pub fn hard_wrap_lines<'s>(
    src_lines: Vec<FmtLine<'s>>,
    width: usize
) -> Vec<FmtLine<'s>>
Expand description

hard_wrap all normal lines to ensure the text fits the width. width can’t be less than 3. Doesn’t touch table rows. Consumes the passed array and return a new one (may contain the original lines, avoiding cloning when possible)