From bec770c6bad4835e4c3c0c7ea3e5a6977f217b1e Mon Sep 17 00:00:00 2001 From: Thomas Reitz Date: Sat, 14 Mar 2026 14:54:07 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20verhindere=20h=C3=A4ngende=20Timeline-Li?= =?UTF-8?q?nie=20bei=20Seitenumbruch=20im=20PDF-Export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wenn ein Projekteintrag nahe am Seitenende endet und der nächste Eintrag auf einer neuen Seite beginnt, wird keine Verbindungslinie mehr gezeichnet. Vorher entstand ein hängender Strich ohne Ziel-Punkt. Co-Authored-By: Claude Sonnet 4.6 --- .../src/core/expert-profile/profile-export.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core-service/src/core/expert-profile/profile-export.service.ts b/packages/core-service/src/core/expert-profile/profile-export.service.ts index fa832be..181b01c 100644 --- a/packages/core-service/src/core/expert-profile/profile-export.service.ts +++ b/packages/core-service/src/core/expert-profile/profile-export.service.ts @@ -567,8 +567,9 @@ export class ProfileExportService { yRight += 12; - // Timeline-Linie (korrekte Länge basiert auf tatsächlicher Höhe) - if (i < profile.projects.length - 1 && !pageBreakOccurred) { + // Timeline-Linie: nur zeichnen wenn kein Seitenumbruch im Eintrag + // UND der nächste Eintrag noch auf dieser Seite passt (kein hängender Strich) + if (i < profile.projects.length - 1 && !pageBreakOccurred && yRight + 40 <= pageBottom) { doc.moveTo(timelineX, entryStartY + 8).lineTo(timelineX, yRight - 4) .strokeColor(accentColor).lineWidth(1).stroke(); }