Commits

Sven Hendriks committed 101ed9f

added color attribute to font tag; you can now specify the font color by RGB hexcode

  • Participants
  • Parent commits 2d77c00

Comments (0)

Files changed (1)

xlsxcessive/style.py

         self.family = params.get('family')
         self.bold = params.get('bold')
         self.index = None
+	self.color = params.get('color')
 
     def __str__(self):
         elems = [
             '<sz val="%d"/>' % self.size if self.size else '',
             '<name val="%s"/>' % self.name if self.name else '',
             '<family val="%d"/>' % self.family if self.family else '',
+	    '<color rgb="%s"/>' % self.color if self.color else '',
             '<b/>' if self.bold else '',
         ]
         return '<font>%s</font>' % (" ".join(filter(None, elems)))