Produces a table-cell element with the
content in a child block element. See
Section 13.11.13, “FO_LABEL_CELL_ATTRS”.
# - - - L a b e l C e l l . f o
def fo(self, s, **kw):
'''Render self as XSL-FO.
'''
#-- 1
# [ s +:= an open table-cell element styled with
# FO_LABEL_CELL_ATTRS and kw
# cell := that element ]
cell = s.start('table-cell', FO_LABEL_CELL_ATTRS, kw)
#-- 2
# [ s +:= a block element displaying self.label, centered ]
s.leaf('block', FO_ALIGN_LEFT, self.label)
#-- 3
cell.end()