title: What is the use of the pipe symbol in YAML?
body: <p>I am new to yaml, and I have a question about the pipe symbol (|) used for multiple lines. Does YAML have any syntax like the one below?</p>
  
  <blockquote>
    <p>test: <strong><em>|6+</em></strong></p>
  </blockquote>
  
  <p>Of the two YAML files below, the first one is working and second is not. I do not know what is causing this.</p>
  
  <p><strong>First File</strong></p>
  
  <pre><code>Name :
    -
     testing:
       val1
    -
     second:
       val2
    -
     third:
       val3
    -
     then
    - 
      final: |
       a
       aa
       aaa
       aaaa : 'test:'
  </code></pre>
  
  <p><strong>Second File</strong></p>
  
  <pre><code>Name :
    -
     testing:
       val1
    -
     second:
       val2
    -
     third:
       val3
    -
     then
    - 
      final: |6+
        a
        aa
        aaa
        aaaa : 'test:'
  </code></pre>
  
  <p>The second file is the customer's.</p>
  
  <p>I am using XMLBeans and I get this error:</p>
  
  <blockquote>
    <p><strong>com.esotericsoftware.yamlbeans.parser.Parser$ParserException: Line 17, column 12: Expected a 'block end' but found: block mapping start"</strong>.</p>
  </blockquote>