Cleaned up newline handling