'Parses a TABLE element and converts it into a format for ReportLab
@param html: the TABLE element  to convert
@return: a list containing text that ReportLab can use'

def parse_table(self, html):

    style = [('FONTSIZE', (0, 0), ((-1), (-1)), self.fontsize), ('VALIGN', (0, 0), ((-1), (-1)), 'TOP'), ('FONTNAME', (0, 0), ((-1), (-1)), self.font_name), ('GRID', (0, 0), ((-1), (-1)), 0.5, colors.grey)]
    (content, row_count) = self.parse_table_components(html, style=style)
    if (content == []):
        return None
    table = Table(content, style=style, hAlign='LEFT', vAlign='Top')
    return [table]
