Set a maximum length for lines.