The table-cell element is styled using
attributes defined in Section 13.11.9, “FO_HEAD_ROW_LABEL_ATTRS”, containing a block that left-aligns the
contents. The number-rows-spanned attribute,
if required, is emitted by Section 33.4, “RowLabel.foRowSpan()”.
# - - - H e a d R o w L a b e l . f o
def fo(self, s, spanCount):
'''Render self as XSL-FO.
'''
#-- 1
# [ s +:= an open table-cell element
# cell := that element ]
cell = s.start("table-cell", self.foRowSpan(spanCount),
FO_HEAD_ROW_LABEL_ATTRS)
#-- 2
# [ s +:= a block element containing self.text, left-aligned ]
s.leaf("block", FO_ALIGN_LEFT, self.text)
#-- 3
# [ s +:= cell, closed ]
cell.end()