#1583 Comments to always write default data

This commit is contained in:
Dolan Miu
2022-07-12 16:57:25 +01:00
parent f183d38bb3
commit a7d55a52f3
3 changed files with 14 additions and 24 deletions

View File

@ -406,26 +406,19 @@ export class Compiler {
path: "word/settings.xml",
},
Comments: {
data: (() => {
if (!file.Comments) {
return;
}
const data = xml(
this.formatter.format(file.Comments, {
viewWrapper: file.Document,
file,
}),
{
indent: prettify,
declaration: {
standalone: "yes",
encoding: "UTF-8",
},
data: xml(
this.formatter.format(file.Comments, {
viewWrapper: file.Document,
file,
}),
{
indent: prettify,
declaration: {
standalone: "yes",
encoding: "UTF-8",
},
);
return data;
})(),
},
),
path: "word/comments.xml",
},
};