title: Replace all newline characters using python
body: <p>I am trying to read a pdf using python and the content has many newline (crlf) characters. I tried removing them using below code:</p>
  
  <pre><code>from tika import parser
  
  filename = 'myfile.pdf'
  raw = parser.from_file(filename)
  content = raw['content']
  content = content.replace("\r\n", "")
  print(content)
  </code></pre>
  
  <p>But the output remains unchanged. I tried using double backslashes also which didn't fix the issue. can someone please advise?</p>