Clean up messy line breaks, remove empty lines, trim whitespace, and normalize CRLF to LF. Useful for cleaning subtitle text, copied content, or script files.