'print' in a CGI app.

Andrew Chalk achalk at XXXmagnacartasoftware.com
Sun Aug 3 21:50:28 CEST 2003


Thanks to you, Timo, Dennis  and Irmen. The <BR> trick was what I was using
but I thought I must be missing something.

Regards
"Timo Virkkala" <wt at nic.fi> wrote in message
news:TVcXa.4487$HC4.642 at reader1.news.jippii.net...
> Andrew Chalk wrote:
> > In a Python 2.2 app. running under CGI the statements
> >
> > print "Hello\n"
> > print "World"
> >
> > print both words on the same line in IE6. How do I print the second one
on a
> > new line (i.e. respect the \n in the first statement).
>
> How about (untested):
>
> print "Hello<BR>\n"
> print "World"
>
> ...since, AFAIK, it should be HTML that CGI's output...?
>
> -- 
> Timo Virkkala | wt at nic.fi
>
>    "In the battle between you and the world, bet on the world."
>






More information about the Python-list mailing list