From b200169de9944b6f40492693915ff284316deeb7 Mon Sep 17 00:00:00 2001 From: Sean Engelhardt Date: Tue, 5 Feb 2019 15:15:12 +0100 Subject: [PATCH] Fix pdf style interpretation fix false style information during recursife pdf generateion fix an error where styling items in a list resultid in unexpected list definitions --- client/src/app/core/ui-services/html-to-pdf.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app/core/ui-services/html-to-pdf.service.ts b/client/src/app/core/ui-services/html-to-pdf.service.ts index 1f241ee02..cc5b6532f 100644 --- a/client/src/app/core/ui-services/html-to-pdf.service.ts +++ b/client/src/app/core/ui-services/html-to-pdf.service.ts @@ -249,14 +249,14 @@ export class HtmlToPdfService { ...this.computeStyle(styles) }; - const children = this.parseChildren(element, newParagraph); - newParagraph = children; + const children = this.parseChildren(element, styles); + newParagraph.text = children; break; } case 'ul': case 'ol': { newParagraph = this.create(nodeName); - const children = this.parseChildren(element, newParagraph); + const children = this.parseChildren(element, styles); newParagraph[nodeName] = children; break; }