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

line breaks are not working #1040

Closed
loganscodes opened this issue Feb 26, 2024 · 1 comment
Closed

line breaks are not working #1040

loganscodes opened this issue Feb 26, 2024 · 1 comment

Comments

@loganscodes
Copy link

loganscodes commented Feb 26, 2024

When I justify the text, line breaks are not working. Here is my code.


doc.autoTable({
                theme:['grid'],
                startY:280,
                styles: {
                    fontSize:10,
                    textColor:80,
                    cellPadding:1,
                    /*rowHeight:700
                    /*font: 'arial'*/
                    halign: 'justify'
                },
                margin: margen,
                bodyStyles: {
                    valign: 'middle', //(doc.internal.getNumberOfPages()!=1) ? 'middle' : 'top',
                    cellPadding: 10,
                    lineColor:'#fff',
                    //rowHeight: (doc.internal.getNumberOfPages()==1) ? 700 : 'auto' ,
                },
                tableWidth: anchoTable,
                tableLineColor:'#fff',
                body: [[contenido]]
            })
@simonbengtsson
Copy link
Owner

Likely duplicate of #974

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

No branches or pull requests

2 participants