Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NameError
Browse files Browse the repository at this point in the history
jnothman committed Apr 5, 2017
1 parent c589c35 commit 176e51c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/formats/format.py
Original file line number Diff line number Diff line change
@@ -1839,7 +1839,7 @@ def remove_none(d):
}

def build_alignment(self, props):
# TODO: text-indent -> alignment.indent
# TODO: text-indent, margin-left -> alignment.indent
return {'horizontal': props.get('text-align'),
'vertical': self.VERTICAL_MAP.get(props.get('vertical-align')),
'wrapText': (props['white-space'] not in (None, 'nowrap')
@@ -1971,7 +1971,7 @@ def color_to_excel(self, val):
'q': ('mm', .25),
}

FONT_SIZE_CONVERSIONS = unit_conversions.copy()
FONT_SIZE_CONVERSIONS = UNIT_CONVERSIONS.copy()
FONT_SIZE_CONVERSIONS.update({
'%': ('em', 1),
'xx-small': ('rem', .5),

0 comments on commit 176e51c

Please sign in to comment.