22 lines
527 B
Python
22 lines
527 B
Python
import sys
|
|
|
|
filepath = r'c:\jumpa.id\c\app\page.tsx'
|
|
|
|
with open(filepath, 'r', encoding='utf-8') as f:
|
|
lines = f.readlines()
|
|
|
|
out_lines = []
|
|
for line in lines:
|
|
out_lines.append(line)
|
|
if '// FASE 87: XTM ABSOLUTE' in line:
|
|
# Include the next line (the return statement)
|
|
idx = lines.index(line)
|
|
out_lines.append(lines[idx+1])
|
|
out_lines.append("}\n")
|
|
break
|
|
|
|
with open(filepath, 'w', encoding='utf-8') as f:
|
|
f.writelines(out_lines)
|
|
|
|
print("Truncated page.tsx successfully.")
|