How to vertically align paragraphs in a table using Reportlab?

I use Reportlab to create reports. Report cards are basically one large table object. Some contents of the contents of the table cells need to be wrapped, in particular headers and comments, and I also need to highlight some elements.

To do both the wrapping and the skill in bold, I use the Paragraph objects in the table. My table needs several of these elements vertically aligned in the middle, but aligning them with a paragraph and snapping my text to the bottom of the cell.

How can I vertically align my paragraph in a table cell?

+3
source share
1

: tablestyle VALIGN: MIDDLE?

- :

t=Table(data) 
t.setStyle(TableStyle([('VALIGN',(-1,-1),(-1,-1),'MIDDLE')])) 

( 7.2 ReportLab)

, .

, ?

+9

Source: https://habr.com/ru/post/1702544/


All Articles