import re print("Fixing tabPaneGoogleAdsB2B DOM position outside of exportModal...") with open('/workspace/live_marketing_index.html', 'r', encoding='utf-8') as f: html = f.read() # Fix exportModal closure bad_block = """ """ good_block = """ """ if bad_block in html: html = html.replace(bad_block, good_block) print("Replaced bad block in live_marketing_index.html!") else: print("Searching for variations...") html = re.sub(r'(\s*