printing string to HTML page in python -
printing string to HTML page in python -
i wrote python code returns stringio consists of several lines extracted runlog. writes string in .txt file , html page.
the format of lines in .txt file shows every line of runlog seperately, how want format be. however, in html page, lines merged instead of beingness separate...
how can solve problem in html page?
this html whitespace / newline formatting question. easiest solution wrap around output <pre>
tag, like
<pre> line1 line2 line3 ... </pre>
alternatively, can wrap each line <p>
tag, or add together <br>
tag after each line.
read more topic here.
python html stringio
Comments
Post a Comment