add more newlines, then remove multiple consecutive empty lines