def new_bootstrap_tabs(visitor, block):
    import re
    global __section__
    
    if 'new' in block:
        __section__ += 1
        
        r_name = re.compile(r'(^-- [^-]+ --$)', re.M)
        def get_id():
            global __seq__
            
            __seq__ += 1
            
            return 'tab_item_%d_%d' % (__section__, __seq__)
        
        txt = []
        txt.append('<div class="tabbable">')
        
        txt.append('<ul class="nav nav-tabs">')
        
        body = block['body']
        i = 0
        items = r_name.split(body)
        first = True
        entries = []
        in_tab = False #if tab processed
        ids = []
        while i<len(items):
            if in_tab:
                entries.append(items[i])
                in_tab = False
            if items[i].startswith('-- ') and items[i].endswith(' --'):
                if first:
                    cls = ' class="active"'
                    first = False
                else:
                    cls = ''
                _id = get_id()
                ids.append(_id)
                txt.append('<li%s><a href="#%s" data-toggle="tab">%s</a></li>' % (cls, _id, items[i][3:-3]))
                in_tab = True
            
            i += 1
        txt.append('</ul>')
        
        txt.append('<div class="tab-content">')
        for i, x in enumerate(entries):
            if i == 0:
                cls = ' active'
            else:
                cls = ''
            txt.append('<div class="tab-pane%s" id="%s">' % (cls, ids[i]))
            txt.append(visitor.parse_text(x, 'article'))
            txt.append('</div>')
            
        txt.append('</div>')
        txt.append('</div>')
        
        return '\n'.join(txt)
    else:
        return bootstrap_tabs(visitor, block)
Sets up a subparser to convert the Iris dataset file.
dataset/ETHPy150Open limodou/par/par/bootstrap_ext.py/new_bootstrap_tabs--crossover with--dataset/ETHPy150Open mila-udem/fuel/fuel/converters/iris.py/fill_subparser