def pad_name(name, pad_num=10, quotes=False):
    '\n    Pad a string so that they all line up when stacked.\n\n    Parameters\n    ----------\n    name : str\n        The string to pad.\n    pad_num : int\n        The number of total spaces the string should take up.\n    quotes : bool\n        If name should be quoted.\n\n    Returns\n    -------\n    str\n        Padded string.\n    '
    l_name = len(name)
    quotes_len = (2 if quotes else 0)
    if ((l_name + quotes_len) < pad_num):
        pad = (pad_num - (l_name + quotes_len))
        if quotes:
            pad_str = "'{name}'{sep:<{pad}}"
        else:
            pad_str = '{name}{sep:<{pad}}'
        pad_name = pad_str.format(name=name, sep='', pad=pad)
        return pad_name
    elif quotes:
        return "'{0}'".format(name)
    else:
        return '{0}'.format(name)
Pad a string so that they all line up when stacked.

Parameters
----------
name : str
    The string to pad.
pad_num : int
    The number of total spaces the string should take up.
quotes : bool
    If name should be quoted.

Returns
-------
str
    Padded string.
def pad_name(name, pad_num=10, quotes=False):
    '\n    Pad a string so that they all line up when stacked.\n\n    Parameters\n    ----------\n    name : str\n        The string to pad.\n    pad_num : int\n        The number of total spaces the string should take up.\n    quotes : bool\n        If name should be quoted.\n\n    Returns\n    -------\n    str\n        Padded string.\n    '
    l_name = len(name)
    quotes_len = (2 if quotes else 0)
    if ((l_name + quotes_len) < pad_num):
        pad = (pad_num - (l_name + quotes_len))
        if quotes:
            pad_str = "'{name}'{sep:<{pad}}"
        else:
            pad_str = '{name}{sep:<{pad}}'
        pad_name = pad_str.format(name=name, sep=, pad=pad)
        return pad_name
    elif quotes:
        return "'{0}'".format(name)
    else:
        return '{0}'.format(name)