title: yaml multi line syntax without newline to space conversion
body: <p>I have something like this dictionary:</p>
  
  <pre><code>env: qat
  target_host: &gt;
           {%if env in ['prd'] %}one
           {%elif env in ['qat','stg'] %}two
           {%else%}three
           {%endif%}
  </code></pre>
  
  <p>when I print it I get:</p>
  
  <blockquote>
    <p>ok: [localhost] => {
        "var": {
            "target_host": "two "
        } }</p>
  </blockquote>
  
  <p>So it is converting the \n at the end of the line to a space.  Which is exactly what it is supposed to do.  However in this case I am just trying to spread out the lines to make the structure of the if/else more readable and I don't want the extra space.  It works as expected if I put it all on one line without the > but I would like to be able to make it multiline just so its easier to read.</p>
  
  <p>I found this question 
  <a href="https://stackoverflow.com/questions/6268391/is-there-a-way-to-represent-a-long-string-that-doesnt-have-any-whitespace-on-mul">Is there a way to represent a long string that doesnt have any whitespace on multiple lines in a YAML document?</a></p>
  
  <p>So I could do:</p>
  
  <pre><code>env: qat
  target_host: "{%if env in ['prd'] %}one\
                {%elif env in ['qat','stg'] %}two\
                {%else%}three\
                {%endif%}"
  </code></pre>
  
  <p>And that gives the desired result.</p>
  
  <p>Is there anyway to accomplish this without cluttering it up even more?</p>