(title, underlying_symbol='-')
return title + '\n' + ' '*indent + underlying_symbol*n
Creates heading string for a given ``title``. Second line under title is decorated with ``underlying_symbol``

    Heading is created taking into account of ``title`` indentation.

    :param title:
    :param underlying_symbol:
    :return: resulting heading string
Creates heading string for a given ``title``. Second line under title is decorated with ``underlying_symbol``
Creates heading string for a given title . Second line under title is decorated with underlying_symbol
def create_heading_str(title, underlying_symbol='-'):
    """
    Creates heading string for a given ``title``. Second line under title is decorated with ``underlying_symbol``

    Heading is created taking into account of ``title`` indentation.

    :param title:
    :param underlying_symbol:
    :return: resulting heading string
    """
    indent = get_indent(title)
    n = len(title.strip())
    return title + '\n' + ' '*indent + underlying_symbol*n
def create_heading_str ( title , underlying_symbol = '-' ) : indent = get_indent ( title ) n = len ( title . strip ( ) ) return title + '\n' + ' ' * indent + underlying_symbol * n