parameters: (self,formattedValue,colNumber)
docstring: Typeset a value for a given column number.
docstring_summary: Typeset a value for a given column number.
docstring_tokens: Typeset a value for a given column number .
function: def typeset_cell(self,formattedValue,colNumber):
          "Typeset a value for a given column number."
          import math
          align = self.col_alignment.get(colNumber,self.LEFT)
          if self.mode=='html': return formattedValue
          if self.mode=='latex': return formattedValue
          if self.mode=='text': 
              try:
                  fill = (self.col_formatted_widths[colNumber]-len(formattedValue))
              except IndexError:
                  fill=0
              if align==self.RIGHT:
                  return " "*fill+formattedValue
              if align==self.CENTER:
                  return " "*math.ceil(fill/2.0)+formattedValue+" "*math.floor(fill/2.0)
              # Must be LEFT
              if colNumber != self.cols-1: # not the last column
                  return formattedValue + " "*fill
              return formattedValue               #  don't indent last column
          raise ValueError("Unknown mode '%s'" % self.mode)
function_tokens: def typeset_cell ( self , formattedValue , colNumber ) : import math align = self . col_alignment . get ( colNumber , self . LEFT ) if self . mode == 'html' : return formattedValue if self . mode == 'latex' : return formattedValue if self . mode == 'text' : try : fill = ( self . col_formatted_widths [ colNumber ] - len ( formattedValue ) ) except IndexError : fill = 0 if align == self . RIGHT : return " " * fill + formattedValue if align == self . CENTER : return " " * math . ceil ( fill / 2.0 ) + formattedValue + " " * math . floor ( fill / 2.0 ) # Must be LEFT if colNumber != self . cols - 1 : # not the last column return formattedValue + " " * fill return formattedValue #  don't indent last column raise ValueError ( "Unknown mode '%s'" % self . mode )