import re

with open('app/modules/sag/templates/detail.html', 'r') as f:
    content = f.read()

old_block = """        <!-- Main Case Info -->
        <div class="col-12 mb-3">
            <div class="card h-100 d-flex flex-column case-summary-card">
                <div class="card-header case-summary-header">
                    <div>
                        <div class="case-summary-title">{{ case.titel }}</div>
                        <div class="case-summary-meta">
                            <span class="case-pill">#{{ case.id }}</span>
                            <span class="case-pill">{{ case.status }}</span>
                            <span class="case-pill case-pill-muted">{{ case.template_key or case.type or 'ticket' }}</span>
                        </div>
                    </div>
                    <div class="d-flex align-items-center gap-2">
                        <a href="/sag/{{ case.id }}/edit" class="btn btn-sm btn-outline-primary">
                            <i class="bi bi-pencil">
with op       content = f.read()

old_block = """        <!-- Main Cas="
old_block = """     e-d        <div class="col-12 mb-3">
                         <div class="card h-1bi                <div class="card-header case-summary-header">
          >
                    <div>
                        <div class c                                                  <div class="case-summary-meta">
                                                   <span class="case-pill">#{er                            <span class="case-pill">{{ case.status }}</sel                            <span class="case-pill case-pill-muted">{{ case s                        </div>
                    </div>
                    <div class="d-flex align-items-center gap-2"</                    </div>
                   
        </d                        <a href="/sag/{{ case.id }}/edit" class=ri                            <i class="bi bi-pencil">
with op       content = f.read()

ol-0 borderwith op       content = f.read()

old_block = """  ol
old_block = """        <!-- Maus:old_block = """     e-d        <div car                         <div class="card h-1bi                    >
                    <div>
                        <div class c                                 "w         ">
                                                                             <span class="case-pill">#{er                            <span cla                      </div>
                    <div class="d-flex align-items-center gap-2"</                    </div>
                   
        </d                        <a href="/sag/{{ case.id }}/edit" class=ri                            <i class="bi b }                    <div m"                   
        </d                        <a href="/sag/{{ case.id }}/edit" clda        </d       1"with op       content = f.read()

ol-0 borderwith op       content = f.read()

old_block = """  ol
old_block = """        <!-- M  
ol-0 borderwith op       conte   
old_block = """  ol
old_block = """      nk-old_block = """                         <div>
                        <div class c                                 "w         ">
                                                        i                                                                              <spa                      <div class="d-flex align-items-center gap-2"</                    </div>
                   
        </d                        <a                 <i c                   
        </d                        <a href="/sag/{{ case.id }}/edit" cl>
        </d                 </d                        <a href="/sag/{{ case.id }}/edit" clda        </d       1"with op       content = f.read()

ol-0 borderwith op       content = f.re  
ol-0 borderwith op       content = f.read()

old_block = """  ol
old_block = """        <!-- M  
ol-0 borderwith op       cmal
old_block = """  ol
old_block = """   0.05emold_block = """   seol-0 borderwith op       conte</old_block = """  ol
old_block =   old_block = """                             <div class c                            order"                                                        i                        ar                   
        </d                        <a                 <i c                   
        </d     enter p-3"><p class="text-muted fst-italic mb-2">Ingen opgavebeskrivelse tilføjet endnu.</p></div>' | safe }}</div>
           </d                 </d                        <a href="/      </div>
            </div>
         </d                 </d                        <a href="/sag/{{e(
ol-0 borderwith op       content = f.re  
ol-0 borderwith op       content = f.read()

old_block = """  ol
old_block = """        <!-- M  
ol-0priol-0 borderwith op       content = f.reah 
old_bund")
