'Enumerated List Item'

def enumerator(self, match, context, next_state):

    (format, sequence, text, ordinal) = self.parse_enumerator(match)
    if (not self.is_enumerated_list_item(ordinal, sequence, format)):
        raise statemachine.TransitionCorrection('text')
    enumlist = nodes.enumerated_list()
    self.parent += enumlist
    if (sequence == '#'):
        enumlist['enumtype'] = 'arabic'
    else:
        enumlist['enumtype'] = sequence
    enumlist['prefix'] = self.enum.formatinfo[format].prefix
    enumlist['suffix'] = self.enum.formatinfo[format].suffix
    if (ordinal != 1):
        enumlist['start'] = ordinal
        msg = self.reporter.info(('Enumerated    list    start    value    not    ordinal-1:    "%s"    (ordinal    %s)' % (text, ordinal)), line=self.state_machine.abs_line_number())
        self.parent += msg
    (listitem, blank_finish) = self.list_item(match.end())
    enumlist += listitem
    offset = (self.state_machine.line_offset + 1)
    (newline_offset, blank_finish) = self.nested_list_parse(self.state_machine.input_lines[offset:], input_offset=(self.state_machine.abs_line_offset() + 1), node=enumlist, initial_state='EnumeratedList', blank_finish=blank_finish, extra_settings={'lastordinal': ordinal, 'format': format, 'auto': (sequence == '#')})
    self.goto_line(newline_offset)
    if (not blank_finish):
        self.parent += self.unindent_warning('Enumerated    list')
    return ([], next_state, [])
