jsPDF-AutoTable icon indicating copy to clipboard operation
jsPDF-AutoTable copied to clipboard

increased lineHeight cuts off multi-line cells

Open jtarvainen opened this issue 5 years ago • 1 comments

I found the following bug in jsPDF-AutoTable v3.5.13:

Using a line height greater than the default (1.15) is not taken into account by jsPDF-AutoTable, causing multi-line cells to get cut off vertically.

Steps to reproduce:

const doc = new jsPDF({
    lineHeight: 1.5
})

doc.autoTable({
    body: [
        ['text \n on \n four \n lines'],
        ['text on one line'],
        ['text on one line'],
    ],
})

This issue was previously pointed on in August 2020 by another user, but for some reason that issue was closed, even though this is a clearly a bug.

jtarvainen avatar Feb 04 '21 13:02 jtarvainen

True! There is a stale PR open for this https://github.com/simonbengtsson/jsPDF-AutoTable/pull/754, but a new PR would be great.

simonbengtsson avatar Feb 05 '21 10:02 simonbengtsson

Released in v3.7.0

mmghv avatar Oct 10 '23 17:10 mmghv