line breaks based on the max-length convention