diff --git a/src/ods/writer.ts b/src/ods/writer.ts index e1f74c3..6c2d86c 100644 --- a/src/ods/writer.ts +++ b/src/ods/writer.ts @@ -1396,7 +1396,10 @@ export function writeMetaXml(props?: WorkbookProperties): string { const modified = props?.modified ?? new Date() children.push(xmlElement("dc:date", undefined, formatOdsDate(modified))) - children.push(xmlElement("meta:generator", undefined, "defter")) + // The producing application, per ODF §4.3.2.1. The same name the XLSX + // writer puts in `` — this said `defter`, the project's + // former name, for as long as the ODS writer has existed. + children.push(xmlElement("meta:generator", undefined, "hucre")) const metaContent = xmlElement("office:meta", undefined, children) diff --git a/test/ods.test.ts b/test/ods.test.ts index c60f797..9e0ae16 100644 --- a/test/ods.test.ts +++ b/test/ods.test.ts @@ -272,7 +272,7 @@ describe("ODS Writer", () => { expect(cells[1].attrs["office:value-type"]).toBeUndefined() }) - it("writes Application: defter in meta.xml", async () => { + it("names itself as the generator in meta.xml", async () => { const data = await writeOds({ sheets: [{ name: "Sheet1", rows: [["test"]] }], }) @@ -280,7 +280,7 @@ describe("ODS Writer", () => { const metaDoc = await parseXmlFromZip(data, "meta.xml") const metaEl = findChild(metaDoc, "meta") const generator = findChild(metaEl, "generator") - expect(getElementText(generator)).toBe("defter") + expect(getElementText(generator)).toBe("hucre") }) it("writes document properties in meta.xml", async () => {