scott1028 / pyfpdf

Automatically exported from code.google.com/p/pyfpdf
GNU Lesser General Public License v3.0
0 stars 0 forks source link

tag td without attribute width #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1 - generate a report containing a table, where the td tag, does not include 
the width attribute, the error will occur: 
"
  File ".../html.py", line 239, in handle_starttag
    if self.td['width']:
KeyError: 'width'

"

What version of the product are you using? On what operating system?
1.54b - 2010-09-10, Ubuntu 10.10

Please provide any additional information below.

I changed the expression "if self.td['width']:" to " if 'width' in self.td:", 
and the error no longer occurs.
What is the expected output? What do you see instead?

Original issue reported on code.google.com by lucassdvl@gmail.com on 28 Nov 2010 at 3:12

GoogleCodeExporter commented 9 years ago
done, sorry for the delay

Original comment by reingart@gmail.com on 6 Aug 2012 at 8:05

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 27ba9f69b179.

Original comment by reingart@gmail.com on 6 Aug 2012 at 8:16