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)
|
...this.computeStyle(styles)
|
||||||
};
|
};
|
||||||
|
|
||||||
const children = this.parseChildren(element, newParagraph);
|
const children = this.parseChildren(element, styles);
|
||||||
newParagraph = children;
|
newParagraph.text = children;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'ul':
|
case 'ul':
|
||||||
case 'ol': {
|
case 'ol': {
|
||||||
newParagraph = this.create(nodeName);
|
newParagraph = this.create(nodeName);
|
||||||
const children = this.parseChildren(element, newParagraph);
|
const children = this.parseChildren(element, styles);
|
||||||
newParagraph[nodeName] = children;
|
newParagraph[nodeName] = children;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user