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
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:
...
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)