@office-open/docx 0.12.1 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -12315,7 +12315,7 @@ var Styles = class {
|
|
|
12315
12315
|
...this.attributes
|
|
12316
12316
|
};
|
|
12317
12317
|
const attrParts = [];
|
|
12318
|
-
for (const [k, v] of Object.entries(merged)) if (v
|
|
12318
|
+
for (const [k, v] of Object.entries(merged)) if (v != null) attrParts.push(` ${k}="${v}"`);
|
|
12319
12319
|
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:styles${attrParts.join("")}>${this.parts.join("")}</w:styles>`;
|
|
12320
12320
|
}
|
|
12321
12321
|
};
|
|
@@ -13394,7 +13394,7 @@ const settingsDesc = {
|
|
|
13394
13394
|
p.push(onOff("w:autoFormatOverride", opts.autoFormatOverride));
|
|
13395
13395
|
p.push(onOff("w:styleLockTheme", opts.styleLockTheme));
|
|
13396
13396
|
p.push(onOff("w:styleLockQFSet", opts.styleLockQFSet));
|
|
13397
|
-
|
|
13397
|
+
p.push(numVal("w:defaultTabStop", opts.defaultTabStop));
|
|
13398
13398
|
p.push(onOff("w:autoHyphenation", opts.autoHyphenation));
|
|
13399
13399
|
p.push(numVal("w:consecutiveHyphenLimit", opts.consecutiveHyphenLimit));
|
|
13400
13400
|
p.push(numVal("w:hyphenationZone", opts.hyphenationZone));
|
|
@@ -13491,11 +13491,11 @@ const settingsDesc = {
|
|
|
13491
13491
|
p.push(onOff("w:doNotEmbedSmartTags", opts.doNotEmbedSmartTags));
|
|
13492
13492
|
p.push(strVal("w:decimalSymbol", opts.decimalSymbol));
|
|
13493
13493
|
p.push(strVal("w:listSeparator", opts.listSeparator));
|
|
13494
|
-
|
|
13494
|
+
p.push(strVal("w14:docId", opts.w14DocId));
|
|
13495
13495
|
p.push(onOff("w14:discardImageEditingData", opts.w14DiscardImageEditingData));
|
|
13496
13496
|
if (opts.w14DefaultImageDpi !== void 0) p.push(strVal("w14:defaultImageDpi", String(opts.w14DefaultImageDpi)));
|
|
13497
13497
|
if (opts.w15ChartTrackingRefBased) p.push(`<w15:chartTrackingRefBased/>`);
|
|
13498
|
-
|
|
13498
|
+
p.push(strVal("w15:docId", opts.w15DocId));
|
|
13499
13499
|
const body = p.join("");
|
|
13500
13500
|
return `<w:settings ${SETTINGS_NS}>${body}</w:settings>`;
|
|
13501
13501
|
},
|