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

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -