@scrider/formatter 1.3.5 → 1.3.6
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.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2502,6 +2502,7 @@ function resolveDocumentPresentation(presentation) {
|
|
|
2502
2502
|
return { lineSpacing, textIndentCm };
|
|
2503
2503
|
}
|
|
2504
2504
|
var LINE_HEIGHT_TAGS = /* @__PURE__ */ new Set(["p", "li", "blockquote"]);
|
|
2505
|
+
var TEXT_INDENT_TAGS = /* @__PURE__ */ new Set(["p", "li"]);
|
|
2505
2506
|
function documentPresentationStyleParts(tag, resolved) {
|
|
2506
2507
|
if (!resolved) return [];
|
|
2507
2508
|
const parts = [];
|
|
@@ -2510,7 +2511,7 @@ function documentPresentationStyleParts(tag, resolved) {
|
|
|
2510
2511
|
parts.push(`line-height:${resolved.lineSpacing}`);
|
|
2511
2512
|
parts.push(`mso-line-height-alt:${pct}%`);
|
|
2512
2513
|
}
|
|
2513
|
-
if (resolved.textIndentCm !== void 0 && tag
|
|
2514
|
+
if (resolved.textIndentCm !== void 0 && TEXT_INDENT_TAGS.has(tag)) {
|
|
2514
2515
|
parts.push(`text-indent:${resolved.textIndentCm}cm`);
|
|
2515
2516
|
}
|
|
2516
2517
|
return parts;
|