Skip to content

Commit 6ff8a46

Browse files
committed
Fix loose character; sorry
1 parent 6d3ffc6 commit 6ff8a46

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pandas/formats/excel.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def build_xlstyle(self, props):
9595
'fill': self.build_fill(props),
9696
'font': self.build_font(props),
9797
}
98+
# TODO: support number format
9899
# TODO: handle cell width and height: needs support in pandas.io.excel
99100

100101
def remove_none(d):
@@ -207,6 +208,16 @@ def build_font(self, props):
207208
assert size.endswith('pt')
208209
size = float(size[:-2])
209210

211+
# TODO:
212+
# re.search(r'''(?x)
213+
# (
214+
# "(?:[^"]|\\")+"
215+
# |
216+
# '(?:[^']|\\')+'
217+
# |
218+
# [^'"]+
219+
# )(?=,|\s*$)
220+
# ''')
210221
font_names = [name.strip()
211222
for name in props.get('font-family', '').split(',')
212223
if name.strip()]
@@ -237,7 +248,7 @@ def build_font(self, props):
237248
'italic': self.ITALIC_MAP.get(props.get('font-style')),
238249
'underline': ('single' if
239250
decoration is not None and
240-
'underline' in decoration`
251+
'underline' in decoration
241252
else None),
242253
'strike': (None if decoration is None
243254
else 'line-through' in decoration),

0 commit comments

Comments
 (0)