Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

halign - Justify #974

Open
enertisbd opened this issue Jun 29, 2023 · 3 comments
Open

halign - Justify #974

enertisbd opened this issue Jun 29, 2023 · 3 comments

Comments

@enertisbd
Copy link

Hi,

This is a suggestion...
Modify the justify alignment code to not apply the word spacing in the last line of the paragraph.
It make the text more readable, specially when the last paragraph contains a few words, or even two words only.

Cheers!

@simonbengtsson
Copy link
Owner

Make sense to me!

@mmghv
Copy link
Collaborator

mmghv commented Oct 8, 2023

It's already looking pretty reasonable :

image

doc.autoTable({
  head: [['Lorem']],
  body: [['Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempore quaerat tempora harum, voluptate tenetur, omnis magnam sed quod dolorum unde ipsum ad. Officiis, iure modi. Culpa maiores ratione odio adipisci!']],
  theme: 'grid',
  tableWidth: 105,
  styles: {
    halign: 'justify',
  },
})

@loganscodes
Copy link

But line breaks are not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants