Skip to content

Commit

Permalink
fix: fix issue with indent setting not working correctly in intended …
Browse files Browse the repository at this point in the history
…tree
  • Loading branch information
yvonneyx committed Sep 20, 2024
1 parent d1446a9 commit dcc13d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/indented.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const util = require("../util");
function positionNode(node, previousNode, indent, dropCap, align) {
// caculate the node's horizontal offset DX, dx's type might be number or function
const displacementX =
typeof indent === "function" ? indent(node) : indent * node.depth;
(typeof indent === "function" ? indent(node) : indent) * node.depth;

if (!dropCap) {
try {
Expand Down

0 comments on commit dcc13d5

Please sign in to comment.