title: Python YAML preserving newline without adding extra newline
body: <p>I have a similar problem to <a href="https://stackoverflow.com/q/3748585/5043762">this question</a> that I need to insert newlines in a YAML mapping value string and prefer not to insert <code>\n</code> myself. The answer suggests using:</p>
  
  <pre><code>Data: |
        Some data, here and a special character like ':'
        Another line of data on a separate line
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>Data: "Some data, here and a special character like ':'\n
        Another line of data on a separate line"
  </code></pre>
  
  <p>which also adds a newline <strong>at the end</strong>, that is unacceptable. </p>
  
  <p>I tried using <code>Data: &gt;</code> but that showed to give completely different results. I have been stripping the final newline after reading in the yaml file, and of course that works but that is not elegant. Any better way to preserve newlines <strong>without adding an extra one at the end</strong>?</p>
  
  <p>I am using python 2.7 fwiw</p>