parameters: (self, field, text)
docstring: Handle format group.
docstring_summary: Handle format group.
docstring_tokens: Handle format group .
function: def handle_format_group(self, field, text):
          """Handle format group."""
  
          # Handle auto incrementing group indexes
          if field == '':
              if self.auto:
                  field = _util.string_type(self.auto_index)
                  text[0] = (_util.FMT_FIELD, field)
                  self.auto_index += 1
              elif not self.manual and not self.auto:
                  self.auto = True
                  field = _util.string_type(self.auto_index)
                  text[0] = (_util.FMT_FIELD, field)
                  self.auto_index += 1
              else:
                  raise ValueError("Cannot switch to auto format during manual format!")
          elif not self.manual and not self.auto:
              self.manual = True
          elif not self.manual:
              raise ValueError("Cannot switch to manual format during auto format!")
  
          self.handle_group(field, tuple(text), True)
function_tokens: def handle_format_group ( self , field , text ) : # Handle auto incrementing group indexes if field == '' : if self . auto : field = _util . string_type ( self . auto_index ) text [ 0 ] = ( _util . FMT_FIELD , field ) self . auto_index += 1 elif not self . manual and not self . auto : self . auto = True field = _util . string_type ( self . auto_index ) text [ 0 ] = ( _util . FMT_FIELD , field ) self . auto_index += 1 else : raise ValueError ( "Cannot switch to auto format during manual format!" ) elif not self . manual and not self . auto : self . manual = True elif not self . manual : raise ValueError ( "Cannot switch to manual format during auto format!" ) self . handle_group ( field , tuple ( text ) , True )