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 b57e2d3f0e..65129e9d15 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 @@ -1,7 +1,7 @@ import { Injectable } from '@angular/core'; import { Id } from 'src/app/domain/definitions/key-types'; import { MotionFormattingRepresentation } from 'src/app/domain/models/motions/motion'; -import { ChangeRecoMode } from 'src/app/domain/models/motions/motions.constants'; +import { ChangeRecoMode, LineNumberingMode } from 'src/app/domain/models/motions/motions.constants'; import { MeetingSettingsService } from 'src/app/site/pages/meetings/services/meeting-settings.service'; import { ViewUnifiedChange, ViewUnifiedChangeType } from '../../../modules'; @@ -261,10 +261,17 @@ export class MotionFormatService { } private addAmendmentNr(changesToShow: ViewUnifiedChange[], current_text: ViewUnifiedChange): string[] { + const lineNumbering = this.settings.instant(`motions_default_line_numbering`); const amendmentNr: string[] = []; amendmentNr.push(``); if (this.hasCollissions(current_text, changesToShow)) { - amendmentNr.push(`warning`); + if (lineNumbering === LineNumberingMode.Outside) { + amendmentNr.push(`warning`); + } else if (lineNumbering === LineNumberingMode.Inside) { + amendmentNr.push(`warning`); + } else { + amendmentNr.push(`warning`); + } } if (`amend_nr` in current_text) { if (typeof current_text.amend_nr === `string`) {