This commit is contained in:
Jon Tibble 2011-02-10 23:00:15 +00:00
parent 12607020be
commit ae2b625d4f
1 changed files with 4 additions and 4 deletions

View File

@ -178,11 +178,11 @@ class HorizontalType(object):
"""
Return a string representation of a horizontal type.
"""
If horizontal_type == Horizontal.Right:
if horizontal_type == Horizontal.Right:
return u'right'
elif horizontal_type == Horizontal.Center:
return u'center'
else
else:
return u'left'
@ -199,11 +199,11 @@ class VerticalType(object):
"""
Return a string representation of a vertical type.
"""
If vertical_type == VerticalType.Bottom:
if vertical_type == VerticalType.Bottom:
return u'bottom'
elif vertical_type == VerticalType.Middle:
return u'middle'
else
else:
return u'top'