TOC content generation aborted

This commit is contained in:
Sergio Mendonça
2018-09-21 11:16:14 -03:00
parent 8b463b3bb6
commit 4ca81df401
9 changed files with 14 additions and 165 deletions

View File

@ -34,8 +34,6 @@ export class Compiler {
}
public async compile(file: File): Promise<JSZip> {
file.generateTablesOfContents();
const zip = new JSZip();
const xmlifiedFileMapping = this.xmlifyFile(file);
@ -65,6 +63,7 @@ export class Compiler {
}
private xmlifyFile(file: File): IXmlifyedFileMapping {
file.verifyUpdateFields();
return {
Document: {
data: xml(this.formatter.format(file.Document), true),