diff --git a/src/jspdf.js b/src/jspdf.js index 9820d1f0f..ee3ba1034 100644 --- a/src/jspdf.js +++ b/src/jspdf.js @@ -3862,6 +3862,8 @@ function jsPDF(options) { ) ) ); + } else { + wordSpacingPerLine.push(0); } text.push([da[l], newX, newY]); } diff --git a/test/reference/textLinkWithAlignOptions.pdf b/test/reference/textLinkWithAlignOptions.pdf index abd1be73e..8c7587060 100644 Binary files a/test/reference/textLinkWithAlignOptions.pdf and b/test/reference/textLinkWithAlignOptions.pdf differ diff --git a/test/specs/jspdf.unit.spec.js b/test/specs/jspdf.unit.spec.js index dc54ea7fd..23c7818c5 100644 --- a/test/specs/jspdf.unit.spec.js +++ b/test/specs/jspdf.unit.spec.js @@ -2433,6 +2433,7 @@ break`, "12.84 Tw", "28.35 813.54 Td", "(This is a) Tj", + "0 Tw", "0. -18.4 Td", "(test.) Tj", "ET"