INNER CODE UNIT · Python
process_file
CodeSmile-0000011110110111/LunyScript-RFC · scripts/fix-tabs-final.py:10
def process_file(content):
"""Process entire file"""
# Find all tab groups
lines = content.split('\n')
result = []
i = 0
while i < len(lines):
line = lines[i]
# Check if this is the start of a tab group
if line.startswith('<div class="code-tabs"'):
# Process this tab group
tab_group, end_index = extract_tab_group(lines, i)
result.append(process_tab_group(tab_group))
i = end_index + 1
else: