13 lines
598 B
Python
13 lines
598 B
Python
|
|
import re
|
||
|
|
|
||
|
|
with open('app/modules/sag/templates/detail.html', 'r', encoding='utf-8') as f:
|
||
|
|
content = f.read()
|
||
|
|
|
||
|
|
# 1. Fjern max-width
|
||
|
|
content = content.replace('<div class="container-fluid" style="margin-top: 2rem; margin-bottom: 2rem; max-width: 1400px;">', '<div class="container-fluid" style="margin-top: 2rem; margin-bottom: 2rem;">')
|
||
|
|
|
||
|
|
# Find de dele vi vil genbruge (dette kræver præcis regex eller dom parsing)
|
||
|
|
# For denne opgave benytter vi en mere generel struktur opdatering ved at finde specifikke markører.
|
||
|
|
# Her antager jeg scriptet er et template udkast
|
||
|
|
print("Script executed.")
|