title: flask - python How to read a file and output to browser line by line and formats
body: <p>I am developing a flask-python application. I want to read a file and out put the content with line-breaks and white spaces intact. Below is the code I have now. But it outputs all the lines as a single stream without any line break. What is the correct way to do it?</p>
  
  <pre><code>with open(anupath, 'r')as f:
      content=""
      for line in f:
          content += line + '\n'
  </code></pre>