[reportlab-users] Minor bug in test suit test_platypus_pto.py

Stuart, Robert Robert.Stuart at granadamedia.com
Thu Mar 10 07:17:27 EST 2005


Minor bug in test suit test_platypus_pto.py

Line 49 reads:
	return Paragraph('<para color=%s>%s</para>' % (c,text),style)

Should read:
	return Paragraph('<para color="%s">%s</para>' % (c,text),style)

Note the double quotes on the color.
Without the double quotes, the string "Color(0,0,0)" generates an error.  

?Presumably, a named color (e.g. Dark Green) would also generate an error?

My apologies if this has been reported before.

Robert Stuart

********************************************************************** 
This email and any files transmitted are confidential and intended 
solely for the use of the individual or entity to which they are 
addressed. If you have received this email in error, please notify 
postmaster at itv.com 

Thank you.
**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20050310/6c1f8df4/attachment.html


More information about the reportlab-users mailing list