printtools/putil.py
def pad(string, *args, width=get_terminal_size().columns, char=' '):
    """Pad a possibly multi-line string to the desired width."""
    return '\n'.join([
        span(s, '', *args, width=width, char=char)
        for s in string.split('\n')
    ])
Pad a possibly multi-line string to the desired width.
Pad a possibly multi-line string to the desired width.
Pad a possibly multi - line string to the desired width .
def pad(string, *args, width=get_terminal_size().columns, char=' '):
    return '\n'.join([
        span(s, '', *args, width=width, char=char)
        for s in string.split('\n')
    ])
def pad ( string , * args , width = get_terminal_size ( ) . columns , char = ' ' ) : return '\n' . join ( [ span ( s , '' , * args , width = width , char = char ) for s in string . split ( '\n' ) ] )
Pad a possibly multi-line string to the desired width.
Pad a possibly multi - line string to the desired width .
"""Pad a possibly multi-line string to the desired width."""
string
width
char