senaite.impress
senaite.impress copied to clipboard
Column overflow with template MultiDefaultByColumn.pt
Steps to reproduce
- Create a report over e.g. 10 ARs with same analyses services or profiles
- Choose template MultiDefaultByColumn.pt
Current behavior
Result table shows only the first 5 ARs, the rest is lost.
Expected behavior
Results of all ARs should be displayed in separate table sections following the setting "Maximum columns per results email" in Bika Setup/Result Reports or create a new item in senaite publisher settings for this.
Screenshot (optional)
Thanks for reporting @grulisco.
Unfortunately Weasyprint does not support table cell splitting on horizontal overflow.
- https://github.com/Kozea/WeasyPrint/issues/96
- https://github.com/Kozea/WeasyPrint/issues/36
This leaves us with the following options:
- smaller font for the whole table, so that more columns fit
- word wrapping inside cells (so the ID breaks into multiple lines)
- using
horizontal
orientation (then 8 columns fit) - using a higher paper format, e.g.
A3
- dropping the table and use
<div class='col'>
boxes instead
The last point should break the next box below, but I doubt that it will be easy to make the columns fit aligned below each other or with the same width.
However, I'm not sure how readable each of these solutions will be in the end on the final report.
This might solve the issue: https://github.com/Kozea/WeasyPrint/issues/666