Hi,
A document I'm working on contains accounting transactions. A transaction is made up of five columns (the debit account, the debit amount, the divider, the credit account and credit amount). Each column may have multiple lines, which should line up.
So I decided to use Flexbox for this for simplicity. Each column of the transaction gets its own element, which are then layouted as flex items in a flex container. I have attached a broken down HTML file of this implementation to this post.
If I only use one line per column, it all works just fine. But unfortunately the output breaks once a column has multiple lines. Sometimes (not sure when exactly) the flex item gets displayed wider than it needs to be, which breaks the layout as the columns of text no longer line up correctly.
The attached PDF file was rendered using Prince 12 on macOS. Let me know if you need any further information to debug this.
Cheers,
Lukas
A document I'm working on contains accounting transactions. A transaction is made up of five columns (the debit account, the debit amount, the divider, the credit account and credit amount). Each column may have multiple lines, which should line up.
So I decided to use Flexbox for this for simplicity. Each column of the transaction gets its own element, which are then layouted as flex items in a flex container. I have attached a broken down HTML file of this implementation to this post.
If I only use one line per column, it all works just fine. But unfortunately the output breaks once a column has multiple lines. Sometimes (not sure when exactly) the flex item gets displayed wider than it needs to be, which breaks the layout as the columns of text no longer line up correctly.
The attached PDF file was rendered using Prince 12 on macOS. Let me know if you need any further information to debug this.
Cheers,
Lukas