Commits

Sven Hendriks committed 6563693

added italic and underline attributes to font

Comments (0)

Files changed (1)

xlsxcessive/style.py

         self.name = params.get('name')
         self.family = params.get('family')
         self.bold = params.get('bold')
+	self.italic = params.get('italic')
+	self.underline = params.get('underline')
         self.index = None
 	self.color = params.get('color')
 
             '<family val="%d"/>' % self.family if self.family else '',
 	    '<color rgb="%s"/>' % self.color if self.color else '',
             '<b/>' if self.bold else '',
+            '<i/>' if self.italic else '',
+            '<u/>' if self.underline else '',
         ]
         return '<font>%s</font>' % (" ".join(filter(None, elems)))