From 5dbb75c059111a8f58c2e23e23112e648c7be109 Mon Sep 17 00:00:00 2001 From: Elblinator Date: Wed, 15 Oct 2025 08:43:05 +0200 Subject: [PATCH 1/2] Add title change into equation --- .../services/export/motion-pdf.service/motion-pdf.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts b/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts index 7137f40286..d8c03dbe49 100644 --- a/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts +++ b/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts @@ -677,12 +677,13 @@ export class MotionPdfService { lineLength: lineLength, firstLine: motion.firstLine }); + const hasChangedTitle = changes.filter(change => change.isTitleChange()).length const lastLineNr = this.lineNumberingService.getLineNumberRange(baseText).to; const workingTextChanges = changes.filter( change => !change.isTitleChange() && change.getLineFrom() <= lastLineNr && change.getLineTo() <= lastLineNr ); - const brokenTextChangesAmount = changes.length - workingTextChanges.length; + const brokenTextChangesAmount = changes.length - workingTextChanges.length - hasChangedTitle; const titleChange = changes.find(change => change.isTitleChange()); From 8672fbc9e7a1168a9aaf0238540676f51db55e11 Mon Sep 17 00:00:00 2001 From: Elblinator Date: Wed, 15 Oct 2025 13:20:53 +0200 Subject: [PATCH 2/2] linter --- .../services/export/motion-pdf.service/motion-pdf.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts b/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts index d8c03dbe49..0c57f62a2f 100644 --- a/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts +++ b/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts @@ -677,7 +677,7 @@ export class MotionPdfService { lineLength: lineLength, firstLine: motion.firstLine }); - const hasChangedTitle = changes.filter(change => change.isTitleChange()).length + const hasChangedTitle = changes.filter(change => change.isTitleChange()).length; const lastLineNr = this.lineNumberingService.getLineNumberRange(baseText).to; const workingTextChanges = changes.filter( change =>