code: def fmt_cell(self, value, width, cell_formating, **text_formating):
          
          strptrn = " {:" + '{:s}{:d}'.format(cell_formating.get('align', '<'), width) + "s} "
          strptrn = self.fmt_text(strptrn, **text_formating)
          return strptrn.format(value)
docs: Format sigle table cell.