From 889aeb57d16e2e68187b5dddd468f4bb5252c33b Mon Sep 17 00:00:00 2001 From: Bastian Rihm Date: Tue, 30 Apr 2024 16:33:53 +0200 Subject: [PATCH] Fix pdf export line break delete if line numbering disabled (#3625) --- .../motion-html-to-pdf.service/motion-html-to-pdf.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/app/site/pages/meetings/pages/motions/services/export/motion-html-to-pdf.service/motion-html-to-pdf.service.ts b/client/src/app/site/pages/meetings/pages/motions/services/export/motion-html-to-pdf.service/motion-html-to-pdf.service.ts index 8f4c22f91d..7e6031bd97 100644 --- a/client/src/app/site/pages/meetings/pages/motions/services/export/motion-html-to-pdf.service/motion-html-to-pdf.service.ts +++ b/client/src/app/site/pages/meetings/pages/motions/services/export/motion-html-to-pdf.service/motion-html-to-pdf.service.ts @@ -54,6 +54,7 @@ export class MotionHtmlToPdfService extends HtmlToPdfService { // Cleanup of dirty html would happen here if (this.lineNumberingMode === LineNumberingMode.None) { htmlText = htmlText.replace(/\s+
/g, ` `); + htmlText = htmlText.replace(/
/g, ``); } else { htmlText = htmlText.replace(/\s+
/g, `
`); }