correct sdt objects of table of contents
This commit is contained in:
12
src/file/table-of-contents/sdt-content.ts
Normal file
12
src/file/table-of-contents/sdt-content.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { Paragraph } from "file/paragraph";
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
|
||||
export class SdtContent extends XmlComponent {
|
||||
constructor() {
|
||||
super("w:sdtContent");
|
||||
}
|
||||
|
||||
public addGeneratedContent(paragraph: Paragraph): void {
|
||||
this.root.splice(this.root.length - 1, 0, paragraph);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user