@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.cjs
CHANGED
|
@@ -2612,6 +2612,7 @@ function resolveDocumentPresentation(presentation) {
|
|
|
2612
2612
|
return { lineSpacing, textIndentCm };
|
|
2613
2613
|
}
|
|
2614
2614
|
var LINE_HEIGHT_TAGS = /* @__PURE__ */ new Set(["p", "li", "blockquote"]);
|
|
2615
|
+
var TEXT_INDENT_TAGS = /* @__PURE__ */ new Set(["p", "li"]);
|
|
2615
2616
|
function documentPresentationStyleParts(tag, resolved) {
|
|
2616
2617
|
if (!resolved) return [];
|
|
2617
2618
|
const parts = [];
|
|
@@ -2620,7 +2621,7 @@ function documentPresentationStyleParts(tag, resolved) {
|
|
|
2620
2621
|
parts.push(`line-height:${resolved.lineSpacing}`);
|
|
2621
2622
|
parts.push(`mso-line-height-alt:${pct}%`);
|
|
2622
2623
|
}
|
|
2623
|
-
if (resolved.textIndentCm !== void 0 && tag
|
|
2624
|
+
if (resolved.textIndentCm !== void 0 && TEXT_INDENT_TAGS.has(tag)) {
|
|
2624
2625
|
parts.push(`text-indent:${resolved.textIndentCm}cm`);
|
|
2625
2626
|
}
|
|
2626
2627
|
return parts;
|