Python: force csv reader to include "\n"'s, instead of creating newline : While working on a Twitter scraping project recently, I noticed that tweets oftentimes have the newline character within them, `\n`, which correspond to linebreaks in the tweets.

In the `.csv` files I am creating, instead of deleting them, I would like to keep said `\n` characters, but `csv.writer` keeps interpreting them as new lines, and my `.csv`'s thus become littered with line-breaks everywhere.

I don't want to simply do `string.replace("\n", " ")` each time, as that is not efficient, and I have tried opening the csv with the following,
`with open(file_name, 'a', newline='\n') as f:`, but that does not seem to do the trick.

How could I tell the `csv.writer` to interpret as `\n`'s as literal strings, and keep them?


