def gather_elements(self, client, node, style):
fb = client.gather_pdftext(node)
t_style=TableStyle(client.styles['field-list'].commands)
colWidths=client.styles['field-list'].colWidths
if self.adjustwidths:
colWidths = map(client.styles.adjustUnits, colWidths)
label=client.text_for_label(self.labeltext, style)+":"
t = self.TableType([[Paragraph(label, style=client.styles['fieldname']),
Paragraph(fb, style)]],
style=t_style, colWidths=colWidths)
return [t]
评论列表
文章目录