Skip to content
Permalink
Browse files

Fix loose character; sorry

  • Loading branch information...
jnothman committed Apr 9, 2017
1 parent 6d3ffc6 commit 6ff8a464810a41c210958816741a9ff72a136748
Showing with 12 additions and 1 deletion.
  1. +12 −1 pandas/formats/excel.py
@@ -95,6 +95,7 @@ def build_xlstyle(self, props):
'fill': self.build_fill(props),
'font': self.build_font(props),
}
# TODO: support number format
# TODO: handle cell width and height: needs support in pandas.io.excel

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

# TODO:
# re.search(r'''(?x)
# (
# "(?:[^"]|\\")+"
# |
# '(?:[^']|\\')+'
# |
# [^'"]+
# )(?=,|\s*$)
# ''')
font_names = [name.strip()
for name in props.get('font-family', '').split(',')
if name.strip()]
@@ -237,7 +248,7 @@ def build_font(self, props):
'italic': self.ITALIC_MAP.get(props.get('font-style')),
'underline': ('single' if
decoration is not None and
'underline' in decoration`
'underline' in decoration
else None),
'strike': (None if decoration is None
else 'line-through' in decoration),

0 comments on commit 6ff8a46

Please sign in to comment.
You can’t perform that action at this time.