Remove empty lines and be smarter about breaking lines.