You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. pdf.html_write("<p><font color="#ff0000">A</font></p>")
What is the expected output?
A red letter "A"
What do you see instead?
Global name "color" is not defined
What version of the product are you using? On what operating system?
1.7
Please provide any additional information below.
I am not sure, but I think, in html.py line 217
if 'color' in attrs:
self.color = hex2dec(attrs['color'])
self.set_text_color(*color)
self.color = color
should be:
if 'color' in attrs:
color = hex2dec(attrs['color'])
----------------^^^^^^
self.set_text_color(*color)
self.color = color
Anyway, which this modification it works.
Original issue reported on code.google.com by mweis...@gmail.com on 3 May 2013 at 9:39
Original issue reported on code.google.com by
mweis...@gmail.com
on 3 May 2013 at 9:39The text was updated successfully, but these errors were encountered: