diff --git a/client/src/app/site/pages/meetings/pages/motions/services/common/motion-format.service/motion-format.service.ts b/client/src/app/site/pages/meetings/pages/motions/services/common/motion-format.service/motion-format.service.ts index 45fb026e8d..b57e2d3f0e 100644 --- a/client/src/app/site/pages/meetings/pages/motions/services/common/motion-format.service/motion-format.service.ts +++ b/client/src/app/site/pages/meetings/pages/motions/services/common/motion-format.service/motion-format.service.ts @@ -240,6 +240,9 @@ export class MotionFormatService { ); } text.push(...this.addAmendmentNr(changesToShow, changesToShow[i])); + if (text[text.length - 3]?.search(`:`)) { + text[text.length - 1] = text[text.length - 1].replace(`os-line-number `, ``); + } text.push(this.diffService.getChangeDiff(motionText, changesToShow[i], lineLength, highlightedLine)); lastLineTo = changesToShow[i].getLineTo(); } @@ -247,6 +250,9 @@ export class MotionFormatService { text.push( this.diffService.getTextRemainderAfterLastChange(motionText, changesToShow, lineLength, highlightedLine) ); + if (text[0].match(``)) { + text[0] = text[0].replace(`os-line-number `, ``); + } return text.join(``); };