Fixed docstring. Resolves #694.
This commit is contained in:
parent
6401e6182b
commit
950922d699
6 changed files with 11 additions and 9 deletions
|
|
@ -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 " "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue