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
This commit is contained in:
Sean Engelhardt 2019-02-05 15:15:12 +01:00
parent a52db89288
commit b200169de9

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