title: YAML: How can I create a multi-line string of comma delimited values?
body: <p>I am using YAML to pass in a string of comma delimited values for a new relic config file to ignore errors. I need the output to look like this:</p>
  
  <pre><code>"NotFoundError,LocationError,InvalidParamsError"
  </code></pre>
  
  <p>I tried using folded style and stripping the last newline. My yaml file looks like this:</p>
  
  <pre><code>ignore_errors: &gt;-
    NotFoundError,
    LocationError,
    InvalidParamsError
  </code></pre>
  
  <p>However, it parses the other newlines as a space in the end giving me something like this:</p>
  
  <pre><code>"NotFoundError, LocationError, InvalidParamsError"
  </code></pre>
  
  <p>I need it to parse the folded string and not add spaces. Please help.</p>