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:
parent
a52db89288
commit
b200169de9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user