Merge pull request #4261 from tsiegleauq/fix-empty-pdf-style

Fix PDF style interpretation
This commit is contained in:
Emanuel Schütze 2019-02-05 16:11:03 +01:00 committed by GitHub
commit 7e95899353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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