#1528 Adding numbering replacer on header and footer

This commit is contained in:
Dolan Miu
2022-06-16 16:31:34 +01:00
parent 05c053a44d
commit f1ab24c439
2 changed files with 47 additions and 3 deletions

View File

@ -279,8 +279,10 @@ export class Compiler {
// TODO: 0 needs to be changed when headers get relationships of their own
const xmlData = this.imageReplacer.replace(tempXmlData, mediaDatas, 0);
const referenedXmlData = this.numberingReplacer.replace(xmlData, file.Numbering.ConcreteNumbering);
return {
data: xmlData,
data: referenedXmlData,
path: `word/header${index + 1}.xml`,
};
}),
@ -301,8 +303,10 @@ export class Compiler {
// TODO: 0 needs to be changed when headers get relationships of their own
const xmlData = this.imageReplacer.replace(tempXmlData, mediaDatas, 0);
const referenedXmlData = this.numberingReplacer.replace(xmlData, file.Numbering.ConcreteNumbering);
return {
data: xmlData,
data: referenedXmlData,
path: `word/footer${index + 1}.xml`,
};
}),