Fixed docstring. Resolves #694.

This commit is contained in:
Griatch 2015-03-09 14:04:12 +01:00
parent 6401e6182b
commit 950922d699
6 changed files with 11 additions and 9 deletions

View file

@ -74,7 +74,7 @@ fill = wrap
def pad(text, width=78, align="c", fillchar=" "):
"""
Pads to a given width, align is one of c,l,r
and fillchar defaults to the empty string
and fillchar defaults to the space character.
"""
align = align if align in ('c', 'l', 'r') else 'c'
fillchar = fillchar[0] if fillchar else " "