title: Python 3: Write newlines to HTML
body: <p>I have upgraded to Python 3 and can't figure out how to convert backslash escaped newlines to HTML.</p>
  
  <p>The browser renders the backslashes literally, so "\n" has no effect on the HTML source. As a result, my source page is all in one long line and impossible to diagnose.</p>