Skip to content

Commit

Permalink
Fix pdf export line break delete if line numbering disabled (OpenSlid…
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel authored and peb-adr committed Apr 30, 2024
1 parent 54954ea commit 889aeb5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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+<br class="os-line-break">/g, ` `);
htmlText = htmlText.replace(/<br class="os-line-break">/g, ``);
} else {
htmlText = htmlText.replace(/\s+<br class="os-line-break">/g, `<br class="os-line-break">`);
}
Expand Down

0 comments on commit 889aeb5

Please sign in to comment.