-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
The table operation does not include the current font size in the calculation.
let result = encoder
.size(2)
.table(
[
{ width: 36, marginRight: 2, align: 'left' },
{ width: 10, align: 'right' }
],
[
[ 'Item 1', '€ 10,00' ],
[ 'Item 2', '15,00' ],
[ 'Item 3', '9,95' ],
[ 'Item 4', '4,75' ],
[ 'Item 5', '211,05' ],
[ '', '='.repeat(10) ],
[ 'Total', (encoder) => encoder.bold().text('€ 250,75').bold() ],
]
)
.encode()will produce an result with an outofbound table
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels