Re: HTML/text formatting question

2005-08-25 Thread Edvard Majakari
Dr. Who [EMAIL PROTECTED] writes: This seems clunky and my next step was going to be to define generic functions which would generate the surrounding html tags only when passed the proper argument. I was wondering if there was a better way to do this with a standard Python library. It

HTML/text formatting question

2005-08-03 Thread Dr. Who
I have a tool that outputs data in either html or text output. Currently I'm writing chucnks like: if html: print 'htmlbody bgcolor=CC' print 'table border=1 bgcolor=FF width=800' print 'trtd colspan=2h2' print 'Differences %s: %s' % (htypestr, lbl1) if html: ...

Re: HTML/text formatting question

2005-08-03 Thread Steven Bethard
Dr. Who wrote: I have a tool that outputs data in either html or text output. Currently I'm writing chucnks like: if html: print 'htmlbody bgcolor=CC' print 'table border=1 bgcolor=FF width=800' print 'trtd colspan=2h2' print 'Differences %s: %s' % (htypestr, lbl1)