def format_menu_entry(self, name: str, node_name: str, desc: str) -> str:
    if (name == node_name):
        s = ('* %s:: ' % (name,))
    else:
        s = ('* %s: %s. ' % (name, node_name))
    offset = max((24, ((len(name) + 4) % 78)))
    wdesc = '\n'.join((((' ' * offset) + l) for l in textwrap.wrap(desc, width=(78 - offset))))
    return ((s + wdesc.strip()) + '\n')
def format_menu_entry(self, name: str, node_name: str, desc: str) -> str:
    if (name == node_name):
        s = ('* %s:: ' % (name,))
    else:
        s = ('* %s: %s. ' % (name, node_name))
    offset = max((24, ((len(name) + 4) % 78)))
    wdesc = '\n'.join((((' ' * offset) + l) for l in textwrap.wrap(desc, width=(78 - offset))))
    return ((s + wdesc.strip()) + '\n')