Python 3: Write newlines to HTML
normally I do like this s=s.replace("\n","<br />\n")
because
<br />
is needed in web page display and
\n
is needed in source display.
just my 2 cents
normally I do like this s=s.replace("\n","<br />\n")
because
<br />
is needed in web page display and
\n
is needed in source display.
just my 2 cents