pub fn head(text: &str, cap: usize) -> String
text on one line, at most cap bytes, cut on a char boundary with an ellipsis when longer.
text
cap