import re with open('src/index.html', 'r', encoding='utf-8') as f: html = f.read() # Replace the divider to use standard Tailwind classes and add shrink-0 so it doesn't disappear old_div_nav = r'
' new_div_nav = r'' old_div_footer = r'' new_div_footer = r'' html = re.sub(old_div_nav, new_div_nav, html) html = re.sub(old_div_footer, new_div_footer, html) with open('src/index.html', 'w', encoding='utf-8') as f: f.write(html) print("Dividers fixed.")