Skip to content

Commit db723d5

Browse files
committed
fix linting errors
1 parent 2ce9793 commit db723d5

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/jspdf.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3908,17 +3908,12 @@ function jsPDF(options) {
39083908
newY = l === 0 ? getVerticalCoordinate(y) : -leading;
39093909
newX = l === 0 ? getHorizontalCoordinate(x) : 0;
39103910

3911-
let numSpaces = da[l].split(" ").length - 1;
3912-
let spacing = numSpaces > 0 ? (maxWidth - lineWidths[l]) / numSpaces : 0;
3911+
const numSpaces = da[l].split(" ").length - 1;
3912+
const spacing =
3913+
numSpaces > 0 ? (maxWidth - lineWidths[l]) / numSpaces : 0;
39133914

39143915
if (l < len - 1) {
3915-
wordSpacingPerLine.push(
3916-
hpf(
3917-
scale(
3918-
(spacing)
3919-
)
3920-
)
3921-
);
3916+
wordSpacingPerLine.push(hpf(scale(spacing)));
39223917
} else {
39233918
wordSpacingPerLine.push(0);
39243919
}

0 commit comments

Comments
 (0)