scala.text
Format this document on writer and try to set line breaks so that the result fits in width columns.
writer
width