Skip to content

Commit

Permalink
Remove all odubled numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Elblinator committed Oct 25, 2024
1 parent bfa019a commit af5910b
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,10 @@ export class MotionFormatService {
if (text[i]?.indexOf(`amendment-nr-n-icon`) !== -1) {
text[i + 1] = text[i + 1]?.replace(`os-split-after`, `os-split-after margin-top-0`);
}
}
// Removes the doubled number from the first line
if (
text[0].match(`<os-linebreak data-line-number=\"1\" class=\"os-line-number line-number-1\"></os-linebreak>`)
) {
text[0] = text[0].replace(` class=\"os-line-number line-number-1\"`, ``);

if (text[i]?.search(`<os-linebreak`) > -1) {
text[i] = text[i].replace(/ class="os-line-number line-number-[1-9]+"/, ``);
}
}
return text;
}
Expand Down

0 comments on commit af5910b

Please sign in to comment.