def list_numbering_start(attrs):
    """extract numbering from list element attributes"""
    if 'start' in attrs:
        return int(attrs['start']) - 1
    else:
        return 0
dataset/ETHPy150Open lsaffre/lino/lino/utils/html2text.py/list_numbering_start/original