Menu

#1 foreground color must be positive integer

open
nobody
None
5
2006-08-29
2006-08-29
Loïc FEJOZ
No

* Rtf2Html.py - line 120

elif token == 'cf':
#foreground color
if int(arg) > 0:
color = self.colorTable.getColor(int(arg) - 1)
if self.styles and self.styles[-1] == 'cf':
self.foutput.write("</font>")
self.styles.pop()
self.foutput.write("\n<font color='%s'>" % str(color))
self.styles.append('cf')

by Hubert B. Hickman

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.