File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ def build_xlstyle(self, props):
95
95
'fill' : self .build_fill (props ),
96
96
'font' : self .build_font (props ),
97
97
}
98
+ # TODO: support number format
98
99
# TODO: handle cell width and height: needs support in pandas.io.excel
99
100
100
101
def remove_none (d ):
@@ -207,6 +208,16 @@ def build_font(self, props):
207
208
assert size .endswith ('pt' )
208
209
size = float (size [:- 2 ])
209
210
211
+ # TODO:
212
+ # re.search(r'''(?x)
213
+ # (
214
+ # "(?:[^"]|\\")+"
215
+ # |
216
+ # '(?:[^']|\\')+'
217
+ # |
218
+ # [^'"]+
219
+ # )(?=,|\s*$)
220
+ # ''')
210
221
font_names = [name .strip ()
211
222
for name in props .get ('font-family' , '' ).split (',' )
212
223
if name .strip ()]
@@ -237,7 +248,7 @@ def build_font(self, props):
237
248
'italic' : self .ITALIC_MAP .get (props .get ('font-style' )),
238
249
'underline' : ('single' if
239
250
decoration is not None and
240
- 'underline' in decoration `
251
+ 'underline' in decoration
241
252
else None ),
242
253
'strike' : (None if decoration is None
243
254
else 'line-through' in decoration ),
You can’t perform that action at this time.
0 commit comments