Perbaiki RPS .docx unduhan (port dari OBE-Mapping 71858d9, 374bdb5)

- Sel template berisi tabel contoh bersarang kini dibersihkan saat ditimpa: dokumen sah OOXML,
  Word tidak lagi menganggapnya rusak lalu mengacak tata letak
- Blok naratif (Peta CPL-CPMK, Deskripsi, Bahan Kajian, Pustaka, Media, Pengampu, Prasyarat)
  ditulis ke baris template asli, bukan indeks yang bergeser setelah daftar CPL/CPMK/Sub digandakan
- Komponen penilaian tanpa bobot & Sub-CPMK tidak dicetak; template rps_untan.docx versi rapi
- Portofolio: kolom NIM
- tests/uji_unduh_rps.py: ke-10 RPS produksi sah & label sejajar (generator lama: 10/10 gagal)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Power BI Dev
2026-10-14 04:39:14 +07:00
co-authored by Claude Opus 5.5
parent 4a68df4592
commit 81082a52c0
5 changed files with 76 additions and 11 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ def build_portofolio(d: dict) -> bytes:
tf = doc.add_table(rows=2 + len(mhs) + 3, cols=3 + len(kol_sub) + 1)
_borders(tf)
_hdr(tf.cell(0, 0), "No.")
_hdr(tf.cell(0, 1), "NPM")
_hdr(tf.cell(0, 1), "NIM")
_hdr(tf.cell(0, 2), "Nama")
for j, sk in enumerate(kol_sub):
_hdr(tf.cell(0, 3 + j), sk, size=7)