We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce9793 commit db723d5Copy full SHA for db723d5
src/jspdf.js
@@ -3908,17 +3908,12 @@ function jsPDF(options) {
3908
newY = l === 0 ? getVerticalCoordinate(y) : -leading;
3909
newX = l === 0 ? getHorizontalCoordinate(x) : 0;
3910
3911
- let numSpaces = da[l].split(" ").length - 1;
3912
- let spacing = numSpaces > 0 ? (maxWidth - lineWidths[l]) / numSpaces : 0;
+ const numSpaces = da[l].split(" ").length - 1;
+ const spacing =
3913
+ numSpaces > 0 ? (maxWidth - lineWidths[l]) / numSpaces : 0;
3914
3915
if (l < len - 1) {
- wordSpacingPerLine.push(
3916
- hpf(
3917
- scale(
3918
- (spacing)
3919
- )
3920
3921
- );
+ wordSpacingPerLine.push(hpf(scale(spacing)));
3922
} else {
3923
wordSpacingPerLine.push(0);
3924
}
0 commit comments