Skip to content

Commit

Permalink
Remove wrong line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Elblinator committed Oct 16, 2024
1 parent cfec396 commit a7fd7f7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,19 @@ export class MotionFormatService {
);
}
text.push(...this.addAmendmentNr(changesToShow, changesToShow[i]));
if (text[text.length - 3]?.search(`:</span></span>`)) {
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();
}

text.push(
this.diffService.getTextRemainderAfterLastChange(motionText, changesToShow, lineLength, highlightedLine)
);
if (text[0].match(`<os-linebreak data-line-number="1" class="os-line-number line-number-1"></os-linebreak>`)) {
text[0] = text[0].replace(`os-line-number `, ``);
}
return text.join(``);
};

Expand Down

0 comments on commit a7fd7f7

Please sign in to comment.