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;
}