add end of lines to respect lines max size