INNER CODE UNIT · Python
process_tab_group
CodeSmile-0000011110110111/LunyScript-RFC · scripts/fix-tabs-final.py:54
def process_tab_group(group_lines):
"""Process a single tab group"""
# Find button section and tab content sections
buttons_start = None
buttons_end = None
tabs = []
current_tab_start = None
current_tab_lines = []
depth = 0
for i, line in enumerate(group_lines):
if '<div class="tab-buttons">' in line:
buttons_start = i
elif buttons_start is not None and buttons_end is None and '</div>' in line:
buttons_end = i
elif '<div class="tab-content' in line:
if current_tab_start is not None: