title: How do I join by new line
body: <p>I am reading a file which has source code. I need to append 2 spaces before each line. This is what I am doing.</p>
  
  <pre><code>data = read_file
  data.split(/\n/).collect {|l| '  ' + l}.join('\n')
  </code></pre>
  
  <p>However after joining when I do puts then it prints \n literally and it is not a line break. How do I fix that?</p>