Splits long text into width-wide chunks for truncate/1.
Not a byte-for-byte port of PHP's wordwrap() - this treats every run of
whitespace (including newlines) as breakable, then greedily packs words back into
lines up to width characters, hard-splitting any single word longer than width.
Summary
Functions
@spec chunks(String.t(), pos_integer()) :: [String.t()]