created a clone method for xml-components

This commit is contained in:
Sergio Mendonça
2018-09-20 15:13:18 -03:00
parent 0684738ec2
commit bf1f702e5a
3 changed files with 26 additions and 2 deletions

View File

@ -328,7 +328,7 @@ export class File {
// console.log("Generating content for paragraph: ", bookmarkId);
// deep clone the original paragraph
const generatedParagraph = Object.assign(Object.create(Object.getPrototypeOf(paragraph)), paragraph);
const generatedParagraph = paragraph.clone() as Paragraph;
generatedParagraph.clearPageBreaks().rightTabStop(9016, "dot");