title: Is there a way to get rid of the \n\n character after converting a PDF with slate?
body: <p>I am using Slate to convert a PDF to text but when I convert it to a string it prints new line characters <code>\n\n</code> between just about every line. I have tried just about everything to remove it but Python does not seem to recognize that it is there. </p>
  
  <p>I have tried <code>.replace("\n\n", " ")</code> and <code>.split("\n\n")</code> and <code>.splitlines()</code> as well as just about every combination/differentiation of those including windows version of newline <code>\r\n</code>. </p>
  
  <p>I am using Spyder as a compiler but I have tested printing to a text file as well to be sure it wasn't just the console. </p>
  
  <pre><code>def Submit():
      MakeDirs()
      newlineChar = '\n\n'
      global EOD_text
      global EODFilname
      with open(EODFilename, 'rb') as EODF:
          EOD_text = str(slate.PDF(EODF))
          EOD_text = EOD_text.replace("\n\n"," ")
  
      print(EOD_text)
  </code></pre>
  
  <p>Example Output:</p>
  
  <pre class="lang-none prettyprint-override"><code>["End Of Day Report\n\nFor Sunday, 12/29/2019\n\nDivision Sales\n\nTotal Sales\n\nDivision\n\nOnline Sales\n\nGeneral Information\n\nDay Temp:\n\nNight Weather:\n\nNight Temp:\n\nOpening Mgr:\n\nClosing Mgr:\n\nNotes:\n\nDay Weather:\n\nCategory Sales\n\nCategory/Sub-Category\n\nTotal Sales\n\nConcessions\n\n
  </code></pre>