title: printing string to HTML page in python
body: <p>I wrote a python code that returns a StringIO which consists of several lines extracted from a runlog. Then it writes this string in a .txt file and an html page.</p>
  
  <p>the format of the lines in the .txt file shows every line of the runlog seperately, which is how I want the format to be.
  However, in the html page, all the lines are merged together instead of being separate...</p>
  
  <p>How can i solve this problem in the html page? </p>